- ©«¤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 ©ó 2011-7-16 13:43 ½s¿è
¦^´_ 23# andylin
¨Ì¼Ëµe¸¬Äª ¸Õ¸Õ¬Ý- 'ThisWorkbook¼Ò²Õªºµ{§Ç
- Private Sub Workbook_Open() '¦¹µ{¦¡¬OÀɮ׶}±Ò®É¦Û°Ê°õ¦æªºµ{¦¡
- Dim E As Range
- If MsgBox("±Ò°Ê¦Û°Ê°O¿ý¸ê®Æ??", vbYesNo) = vbNo Then Exit Sub
- Sheets("1¤ÀK").UsedRange.Offset(1, 1) = "" ' ²M°£¬Q¤é¸ê®Æ
- Sheets("5¤ÀK").UsedRange.Offset(1, 1) = ""
- Sheets("15¤ÀK").UsedRange.Offset(1, 1) = ""
- Application.OnTime #9:00:00 AM#, "ThisWorkbook.¸ê®Æ¿é¤J"
- '**** 09:00:00®É¶¡°õ¦æµ{¦¡ ->¸ê®Æ¿é¤J
- End Sub
- Sub ¸ê®Æ¿é¤J()
- Dim Ar(1 To 15) 'Ar°}¦C -> ¦s¤J§Anªº¼Æ¾Ú
- Ar(1) = Time
- Ar(2) = [Table!B2]
- Ar(3) = [Table!C2]
- Ar(4) = "=IF(ROW()>2,RC[-2]-R[-1]C[-2],"""")" ' ** ¤½¦¡
- Ar(5) = "=IF(ROW()>2,RC[-2]-R[-1]C[-2],"""")"
- 'Ar(6) ªÅ¥Õ
- Ar(7) = [Table!E2]
- Ar(8) = [Table!F2]
- Ar(9) = "=IF(ROW()>2,RC[-2]-R[-1]C[-2],"""")"
- Ar(10) = "=IF(ROW()>2,RC[-2]-R[-1]C[-2],"""")"
- 'Ar(11) ªÅ¥Õ
- Ar(12) = [Table!H2]
- Ar(13) = [Table!I2]
- Ar(14) = "=IF(ROW()>2,RC[-2]-R[-1]C[-2],"""")"
- Ar(15) = "=IF(ROW()>2,RC[-2]-R[-1]C[-2],"""")"
- If Minute(Time) Mod 1 = 0 Then Sheets("1¤ÀK").Range("A" & Rows.Count).End(xlUp).Offset(1).Resize(1, UBound(Ar)).Value = Ar 'Minute(Time) Mod 1=0 ¨C¤ÀÄÁ
- If Minute(Time) Mod 5 = 0 Then Sheets("5¤ÀK").Range("A" & Rows.Count).End(xlUp).Offset(1).Resize(1, UBound(Ar)).Value = Ar 'Minute(Time) Mod 1=0 ¨C5¤ÀÄÁ
- If Minute(Time) Mod 15 = 0 Then Sheets("15¤ÀK").Range("A" & Rows.Count).End(xlUp).Offset(1).Resize(1, UBound(Ar)).Value = Ar 'Minute(Time) Mod 1 =0 ¨C15¤ÀÄÁ
- If Time <= #1:30:00 PM# Then Application.OnTime TimeValue(Format(Time, "hh:MM:00")) + #12:01:00 AM#, "ThisWorkbook.¸ê®Æ¿é¤J"
- ' *** #1:30:00 PM# ¤§«e®É¶¡°õ¦æµ{¦¡ ->¸ê®Æ¿é¤J
- End Sub
½Æ»s¥N½X ½Ð¬Ý³o¸ÌªºPS |
|