VBA: Edit Module Across Multiple Worbooks

AxeCM

New Member
Joined
Mar 8, 2022
Messages
7
Office Version
  1. 365
  2. 2021
  3. 2019
Platform
  1. Windows
  2. MacOS
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

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
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,223,227
Messages
6,170,848
Members
452,361
Latest member
d3ad3y3

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