'將本vba貼到Module1
Sub test()
Dim sh1 As Worksheet, sh2 As Worksheet
Dim I As Integer
Set sh1 = Sheets("Sheet1") '請自行改成 "工作表1"
Set sh2 = Sheets("Sheet2") '請自行改成 "工作表2"
Application.OnTime Now + TimeValue("00:00:05"), "test"
For I = 1 To sh1.[A65536].End(xlUp).Row
sh1.Cells(I, 1).Resize(1, 5).Copy sh2.Cells(I, 1)
Next
End Sub
'若要結束, 請按 Ctrl+Break作者: litcji 時間: 2016-1-8 02:43
回復 3#litcji
Sorry, 我會錯意了, 試試看!!
'將本vba貼到Module1
Public cnt As Integer
Sub copy1()
Dim sh1 As Worksheet, sh2 As Worksheet, x
Set sh1 = Sheets("Sheet1") '請自行改成 "工作表1"
Set sh2 = Sheets("Sheet2") '請自行改成 "工作表2"
sh1.Cells(cnt, 1).Resize(1, 5).Copy sh2.Cells(cnt, 1)
cnt = cnt + 1
Application.OnTime Now + TimeValue("00:00:05"), "copy1"
End Sub
從 test 開始執行
Sub test()
cnt = 1 '請改成你的起始列
copy1
End Sub
'若要結束, 請按 Ctrl+Break作者: litcji 時間: 2016-1-9 00:31