Johnny Thunder
Well-known Member
- Joined
- Apr 9, 2010
- Messages
- 693
- Office Version
- 2016
- Platform
- MacOS
Hello All,
Here is a VBA batch project I am working on.
I have 45 .Xlsm files
• Each have a Macro to Unlock the file Unlock_File
• Each have a named Range QtrComment which equals a quarter and date "Q3 2014"
•Each have a Macro that Locks the file back down and Saves the File Lock_File
The procedure I am trying to accomplish is to open a Master file that contains a Macro that will look to a specific Folder location: U:\Business Files\Q32014\Johnny and open each file one by one and,
1. Call the Macro Unlock_File to unlock the file
2. Update Named Range on Sheet "Cover Letter" QtrComment from "Q3 2014" to "Q4 2014"
3. Call Macro Lock_File to lock down the file and save
The code will need to be a loop so that it can run on all files in this folder location. Not really sure where to start, I have ran the Macro recorder and got more confused.
Thanks for any help in advance.
Currently on Excel 2013 (64-Bit)
Here is a VBA batch project I am working on.
I have 45 .Xlsm files
• Each have a Macro to Unlock the file Unlock_File
• Each have a named Range QtrComment which equals a quarter and date "Q3 2014"
•Each have a Macro that Locks the file back down and Saves the File Lock_File
The procedure I am trying to accomplish is to open a Master file that contains a Macro that will look to a specific Folder location: U:\Business Files\Q32014\Johnny and open each file one by one and,
1. Call the Macro Unlock_File to unlock the file
2. Update Named Range on Sheet "Cover Letter" QtrComment from "Q3 2014" to "Q4 2014"
3. Call Macro Lock_File to lock down the file and save
The code will need to be a loop so that it can run on all files in this folder location. Not really sure where to start, I have ran the Macro recorder and got more confused.
Thanks for any help in advance.
Currently on Excel 2013 (64-Bit)