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

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.

My Aswer Is This

Well-known Member
Joined
Jul 5, 2014
Messages
19,342
Office Version
  1. 2021
Platform
  1. Windows
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

AxeCM

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

jkpieterse

Well-known Member
Joined
Dec 3, 2007
Messages
1,189
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,186,647
Messages
5,958,968
Members
438,387
Latest member
faxeur

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
Top