How to copy worksheet vba code to all workbooks in a folder

ewan97

New Member
Joined
May 10, 2016
Messages
2
Hi,

I have vba code that sits in a specific worksheet called 'tracker' that I now want to copy and save to the 'tracker' worksheet of some 500+ workbooks. These workbooks are already populated with data so the vba is to be inserted into the 'tracker' worksheet and then saved.

The files are in excel 2010 format.

Is this possible and/or is there an easier way to do this?

thanks all
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.

01-7700

Board Regular
Joined
Nov 7, 2011
Messages
62
look into creating a PERSONAL.xlsb file for macros that you would like to use on multiple spreadsheets
 

ewan97

New Member
Joined
May 10, 2016
Messages
2
A 'personal' macro is not appropriate because these 500+ workbooks are on a shared directory. The responsibility for updating these project workbooks are with project managers who have differing levels of excel competence. I'm looking for a way to automate the one-time insertion of vb code to a specific worksheet in all these workbooks. And about the vb code itself, all that does is have a message box pops up whenever a cell in a certain range is changed.
 

Forum statistics

Threads
1,143,654
Messages
5,720,109
Members
422,266
Latest member
Mattyw

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