Copy VBA code to multiple pages at once? (NOT to run it on multiple pages)

DDRA Steampunk

New Member
Joined
Feb 10, 2017
Messages
23
Is there some kind of option or code to clear/replace VBA code? I have a workbook with about a hundred pages and I have just a snippet of code that needs to go on most but not all of them to make a toggle button work by calling the sub from the right module. I can't just find/replace because I am replacing a huge block of code with a tiny one and Excel doesn't seem to like that. Opening the code windows and ctrl+v ctrl+v crtl+v... argh! Just kill me now. I read a thread earlier about how to automatically create a macro button instead of the Active X button I used. If all else fails that's my backup plan. Suggestions much appreciated!
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.

Forum statistics

Threads
1,223,893
Messages
6,175,242
Members
452,623
Latest member
russelllowellpercy

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