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

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"

Forum statistics

Threads
1,215,684
Messages
6,126,199
Members
449,298
Latest member
Jest

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