Excel macro which copies the last two worksheets of 5 workbooks lying in a certain folder on desktop , into a new workbook named as output_DDMMYYHHMMSS.xlsx
Excel macro which copies the last two worksheets of 5 workbooks lying in a certain folder on desktop , into a new workbook named as output_DDMMYYHHMMSS.xlsx
Welcome to the forum
Amend to suit
Assumes all files have extension ".xlsx"
Only filename (NOT Extension) required in array
fPath needs to be the full folder path followed by "\"
In standard module:
NotePlease Login or Register to view this content.
Variable wb is not dimensioned with a variable type - used as variant, string & workbook
Last edited by kev_; 03-01-2018 at 12:49 AM. Reason: Adjusted code
Click *Add Reputation to thank those who helped you. Ask if anything is not clear
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks