- ©«¤l
- 2035
- ¥DÃD
- 24
- ºëµØ
- 0
- ¿n¤À
- 2031
- ÂI¦W
- 0
- §@·~¨t²Î
- Win7
- ³nÅ骩¥»
- Office2010
- ¾\ŪÅv
- 100
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2012-3-22
- ³Ì«áµn¿ý
- 2024-2-1
|
¥»©«³Ì«á¥Ñ c_c_lai ©ó 2014-6-6 08:51 ½s¿è
¦^´_ 14# HenryWang123
¸Õ¸Õ¬Ý¡I
ThisWorkbook:- Option Explicit
- Private Sub Workbook_Open()
- Dim T As Date
-
- T = #8:47:00 AM#
- Application.OnTime T, "Module1.AutoCopy"
- End Sub
½Æ»s¥N½X Module1:- Option Explicit
- Sub AutoCopy()
- Dim t2 As Date
- Dim i As Integer, sht As String
-
- i = 0
- While i < 2
- i = i + 1
- t2 = Now + TimeSerial(0, 2, 0)
- sht = IIf(i = 1, "Sheet1", "Sheet2")
- With Sheets(sht)
- .Select
- .[a9:j11].Copy
- .[b65536].End(3).Offset(1, 0).Select
- If .[b13] = "" Then .[b13].Select
- Selection.PasteSpecial xlPasteValues
- End With
- Wend
- If Time <= #1:45:00 PM# Then Application.OnTime t2, "Module1.AutoCopy"
- End Sub
½Æ»s¥N½X |
|