VBA: Edit Module Across Multiple Worbooks

L

Legacy 490319

Guest
Hi All,

I currently have 200 Excel Workbooks saved in a Folder, and would like to replace the Contents of an existing VBA Module in each Workbook with updated Code from the same Module in the Master Template. Does anyone have any VBA that would be able to do this?

Thank you for any suggestions / help
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
Hi All,

I currently have 200 Excel Workbooks saved in a Folder, and would like to replace the Contents of an existing VBA Module in each Workbook with updated Code from the same Module in the Master Template. Does anyone have any VBA that would be able to do this?

Thank you for any suggestions / help
Did you know you can save your Module in the Excel Personal folder and then run them from any workbook. This way if you wanted to change the Module code you would only need to change one module not 200
 
Upvote 0
Did you know you can save your Module in the Excel Personal folder and then run them from any workbook. This way if you wanted to change the Module code you would only need to change one module not 200
Thanks for the suggestion. Unfortunately i need to make the change to each Workbook individually as they are also used by many other colleagues / shared with other parts of the business.
 
Upvote 0
This is what add-ins were invented for :-)
I have a free tool to copy the VBA project from one workbook to another here: Free Excel Downloads
but I realize it isn't very simple to use for hundreds of files. The code in the add-in is unprotected however, so feel free to check it out and learn from it.
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,176
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