- ©«¤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-7 08:48 ½s¿è
¦^´_ 8# andylin
§A¤W¶Çªº¬O2007ª© ¹Ï§Î 2003µLªk³B¸Ì
§AµLªk¤U¸üÀÉ®×.¤U¦Cµ{¦¡½X§A¥ý¦sÀÉ«á¦A¶}±Ò¸Õ¸Õ¬Ý.
PS:¨C¤é08:45«e¶}±ÒÀɮ׼ƾڤ~·|¸¨©ó¥¿½T®É¶¡¦ì¸m- '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) = ""
- For Each E In Sheets("1¤ÀK").[A2:A302]
- Application.OnTime E, "ThisWorkbook.¸ê®Æ¿é¤J" '¨Ì[A2:A302]¤ºªº®É¶¡°õ¦æµ{¦¡ ->¸ê®Æ¿é¤J
- Next
- End Sub
- Sub ¸ê®Æ¿é¤J()
- Dim Ar()
- Ar = Array([MSCIÅv«50ªÑ!D2], [MSCIÅv«50ªÑ!E2], [MSCIÅv«50ªÑ!B2], "", _
- [Matrix!F2], [Matrix!F3], [Matrix!F4], [Matrix!F144], "", _
- [SUM(Matrix!AF16:AF47)], [SUM(Matrix!AF48:AF79)], [SUM(Matrix!AF80:AF111)], [SUM(Matrix!AF112:AF143)])
- 'Ar°}¦C -> ¦s¤J§Anªº¼Æ¾Ú
- If Minute(Time) Mod 1 = 0 Then Sheets("1¤ÀK").Range("B" & Rows.Count).End(xlUp).Offset(1).Resize(1, 8).Value = Ar 'Minute(Time) Mod 1=0 ¨C¤ÀÄÁ
- If Minute(Time) Mod 5 = 0 Then Sheets("5¤ÀK").Range("B" & Rows.Count).End(xlUp).Offset(1).Resize(1, 8).Value = Ar 'Minute(Time) Mod 1=0 ¨C5¤ÀÄÁ
- If Minute(Time) Mod 15 = 0 Then Sheets("15¤ÀK").Range("B" & Rows.Count).End(xlUp).Offset(1).Resize(1, 8).Value = Ar 'Minute(Time) Mod 1 =0 ¨C15¤ÀÄÁ
- 'Range("B" & Rows.Count) -> Rows.Count¦CªºÁ`¦C¼Æ 2003ª©: Range("B65536")
- 'Range("B" & Rows.Count).End(xlUp) ->Range("B65536")©¹¤W²¾°Ê¨ì¦³¸ê®Æªº¦ì¸m
- '©¹¤W²¾°Ê¨ì¦³¸ê®Æªº¦ì¸m.Offset(1)->Offset(1,0)->©¹¤U¦ì²¾(1¦C,0Äæ)
- '©¹¤W²¾°Ê¨ì¦³¸ê®Æªº¦ì¸m.Offset(1).Resize(1, 8)->ResizeÂX¥R½d³ò(1¦C,8Äæ)
- End Sub
½Æ»s¥N½X |
|