我想將一個文件夾中的多個工作簿的所有工作表複製到另一個工作簿中。我發現下面的代碼,但不知道如何粘貼特殊值,以避免不必要的格式。將文件夾中多個工作簿中的數據複製到一個工作簿中僅粘貼特殊值
Sub GetSheets()
Path = "C:\Users\mechee69\Download\"
Filename = Dir(Path & "*.xls")
Do While Filename <> ""
Workbooks.Open Filename:=Path & Filename, ReadOnly:=True
For Each Sheet In ActiveWorkbook.Sheets
Sheet.Copy After:=ThisWorkbook.Sheets(1)
Next Sheet
Workbooks(Filename).Close
Filename = Dir()
Loop
End Sub
的[將多個Excel工作簿成一個單一的工作簿]可能的複製(http://stackoverflow.com/questions/26455076/combine-multiple-excel-workbooks-into-a-single-workbook) – ti7