Template File To Open Up Various .XLS Files within the same folder

santa12345

Board Regular
Joined
Dec 2, 2020
Messages
70
Office Version
  1. 365
Platform
  1. Windows
Hello.
Here is what I'm trying to do.

On a monthly basis and within the same directory I could have 5, 10, maybe 20 files that need to be processed.
This number will vary....
Directory - C:\Monthly Processing
Now on a monthly basis, the files within Monthly Processing will also be named differently based on dates, customer name, etc..
Soo Lets say...this month ..the folder looks like this.
C:\Monthly Processing\10012021-Bills Hardware Store.xlsx
C:\Monthly Processing\10052021-Judys Jewerly.xlsx
etc..

I would like to create a file within the C:\Monthly Processing folder ....called 123.xlsx
Within 123.xlsx, I want to add a macro that will open up the first file (in this case, Bills Hardware Store.xlsx.....Copy Data some data from Bills Hardware Store.xlsx to the 123.xlsx file)
Save and close the Bills Hardware Store.xlsx file and then the macro within the 123.xlsx file opens up the next file ...Judys, etc.....xlsx file and performs the same steps, etc..
It continues looping until the macro has touched all the files in the C:\Monthly Processing folder, with the exception of the 123.xlsx file (of course :) )
Please let me know how this is doable and if you have any suggestions.
Thank you and have a nice day !
 

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)

Forum statistics

Threads
1,224,820
Messages
6,181,157
Members
453,021
Latest member
Justyna P

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top