"Sourcesheet" Empty If You Want To Copy A Workbook Level Name. Note If You Want To Use A
"Sourcesheet" Empty If You Want To Copy A Workbook Level Name. Note If You Want To Use A
Copy the range A1:C5 in "Sheet1" from a closed workbook to A1 in this worksheet.
The closed workbook is the file test.xls that is in the same folder.
The argument Header = True and UseHeaderRow = True so it copy the Header row.
Copy the range A1:C5 in "Sheet1" from a closed workbook to A1 in this worksheet.
In this example Header = True and UseHeaderRow = False so it not copy the Header row.
With this example we copy A3:C4 in "Sheet1"of the closed file to A1 in this worksheet.
In this example Header = False and UseHeaderRow can be True or False because it is not used.
With this example you can select the file with GetOpenFilename.
The example copy A1:C1 in "Sheet1" of the closed file to A1 in this worksheet.
With this example you can select more then one file with GetOpenFilename.
It will add a new worksheet to your workbook with all the data in it.
The example copy A1:C1 from "Sheet1" from each workbook to the new woksheet.
use a named range in the code instead of a range leave the second argument
ty if you want to copy a workbook level name.