Archive of Mr Excel Message Board
Back to Excel VBA archive index
Back to archive home
Copy,paste macro from multiple sheetsPosted by Mar on September 27, 2001 11:55 AM
How would you go about making a macro that opens a list of workbooks and then copies the same range from all the workbooks and paste them in a new workbook?
|Check out our Excel VBA Resources
Re: Copy,paste macro from multiple sheetsPosted by Barrie Davidson on September 27, 2001 12:53 PM
Try this macro.
' Written by Barrie Davidson
Dim receivingFile As String
Dim filestoOpen, openFile
filestoOpen = Application.GetOpenFilename(, , , , True)
receivingFile = ActiveWorkbook.Name
For count = 1 To UBound(filestoOpen)
openFile = ActiveWorkbook.Name
Application.CutCopyMode = False
This archive is from the original message board at www.MrExcel.com.
All contents © 1998-2004 MrExcel.com.
Visit our online store
to buy searchable CD's with thousands of VBA and Excel answers.
Microsoft Excel is a registered trademark of the Microsoft Corporation.
MrExcel is a registered trademark of Tickling Keys, Inc.