2014-10-30 16 views

回答

0
Sub sbCopyRangeToAnotherSheet() 
    dim col as integer 
    col = 1 
    For Each wks In Worksheets 
     if (wks.Name <> "Sheet4") then 
      wks.Range("A:B").Copy Destination:=Sheets("Sheet4").Cells(1, col) 
      col = col + 2 
     end if 
    next wks 
End Sub 
+0

thanx您響應,但它僅複製單號3我想複製工作表Sheet1,Sheet2中,表Sheet 3,(所有數據)表4號我希望你能幫幫我謝謝 – yogogeri 2014-10-30 16:23:23

+0

我的壞,牀單總是被複制到同一個目的地,解釋了爲什麼你只有最後一張紙。看看我的編輯,它現在應該工作;) – Veve 2014-10-30 16:39:44

+0

錯誤消息對象不支持此屬性或方法 – yogogeri 2014-10-30 16:46:03

相關問題