- ©«¤l
- 5923
- ¥DÃD
- 13
- ºëµØ
- 1
- ¿n¤À
- 5986
- ÂI¦W
- 0
- §@·~¨t²Î
- win10
- ³nÅ骩¥»
- Office 2010
- ¾\ŪÅv
- 150
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥xÆW°ò¶©
- µù¥U®É¶¡
- 2010-5-1
- ³Ì«áµn¿ý
- 2022-1-23
|
¥»©«³Ì«á¥Ñ GBKEE ©ó 2015-7-28 13:05 ½s¿è
¦^´_ 3# daniel5168
¸Õ¸Õ¬Ý- Sub ¦Û°Ê°O¿ý()
- Dim E As Variant, Rng As Range, t As Date, S As Integer, Shts()
- Shts = Array("Sheet1", "°Ó«~1", "°Ó«~2", "°Ó«~3") '¤u§@ªí¦b¬¡¶Ã¯ªº¦WºÙ
- If uMode = 0 Then Exit Sub
- For Each E In Shts
- With Sheets(E)
- ' .Activate ¦¨¬°§@¥Î¤¤ªº¤u§@ªí
- If Time > TimeValue(EndTime) Then '¦¬½L®É¶¡¥H«á¤£°õ¦æ
- .[O8] = "¤w¹L¦¬½L"
- uMode = 0
- GoTo For_Next 'Exit Sub
- End If
- .Range("B8") = Time '·í«e®É¶¡¡]®É¶¡½Xªí¡^
- '----------------------------------------------------------
- Set Rng = .Range("A65536").End(xlUp).Offset(1)
- .Range("A" & Rng.Row & ":N" & Rng.Row).Value = .Range("A8:N8").Value
- '------------------------------------------------
- ActiveWindow.ScrollRow = IIf(Rng.Row > 20, Rng.Row - 18, 1) 'Åý³Ì·s¸ê®Æ«O«ù¦b¥i¨£µøµ¡¤¤
- Beep
- End With
- For_Next:
- Next
- '------------------------------------------------
- '¤U¤@Ó¶¡¹jªº¤ÀÄÁ
- S = 1 '¨C¢°¤ÀÄÁ°O¿ý¡A¢´¤ÀÄÁ«h§ï¬°5
- t = Int(Application.Text(Time, "[m]") / S) + 1 '(Á`¤ÀÄÁ¼Æ/¶¡¹jªº¤ÀÄÁ¼Æ) + 1
- t = DateAdd("N", S * t, 0) '±q0¤ÀÄÁ«áªº T * ¶¡¹jªº¤ÀÄÁ¼Æ
- ThisWorkbook.Save '¦sÀÉ
- Application.OnTime t, "¦Û°Ê°O¿ý"
- End Sub
½Æ»s¥N½X |
|