我正在運行以下宏將多個工作表的列數據合併到同一工作簿中的一個工作表(一列)中。 Workbook- ThisWorkbooksVBA excell運行時錯誤424對象未找到
Public Sub Test()
Dim lRow As Long
Dim sh As Worksheet
Dim shArc As Worksheet
Set shArc = ThisWorkbooks.Worksheets("Archive")
For Each sh In ThisWorkbooks.Worksheets
Select Case sh.Name
Case Is <> "Archive"
lRow = shArc.Range("A" & Rows.Count).End(xlUp).Row
sh.Range("A1:A1000").Copy _
Destination:=shArc.Range("A" & lRow + 1)
End Select
Next
Set shArc = Nothing
Set sh = Nothing
End Sub
的 Nmae你能告訴我什麼是必須是錯在這裏。