I have been working on something that really has me stumped, even after searching the internet for days (although I must admit I'm still quite the novice.)
I want my code to copy the data from a specific sheet (same name in each file) for each file in a folder and paste it into my workbook - essentially combining the data from each file in a given folder to create a master summary sheet.
Here's the step by step for what I want it to do:
--------------------------------------------------------------------------------------------------------------------------------
1. Prompt the user to choose the folder containing the excel files (this folder will be a sub folder on a network drive)
2. Loop through every workbook in the chosen folder and for each workbook in the folder, do the following
A. Go to the "SUBMITTED BUDGET SUMMARY" worksheet and copy all of the data in the table (table name = "Summary")
B. Go to Sheet1 of my master file "MASTER BUDGET SUMMARY - ALL BUDGET OFFICERS.xlsm", find the next blank row and paste the copied data as a pastespecial - paste link - one row below the blank row (leaving blank rows between each of my copied data)
C. Close the workbook I just copied data from without saving
3. Move on to the next workbook and repeat steps A thru C above.
--------------------------------------------------------------------------------------------------------------------------------
I initially wrote and compiled code from doing some research online and tested it choosing a folder on my desktop. It worked beautifully, but now it won't work when I try to choose the ACTUAL folder containing my files, which is a sub folder on a shared network drive.
I've looked everywhere at various possible solutions and I can't figure it out!!! Any help would be MUCH appreciated!
Here's my code:
Bookmarks