Help with a macro (sorry I'm really new)

RMWarner

New Member
Joined
Mar 19, 2011
Messages
1
Hello everyone,
I recorded a macro to extract a worksheet from a workbook so I can save a copy of it elsewhere and leave the original work sheet unchanged (as a template of sorts). It works fine with one exception. Once the macro is run and the page is extracted the button that I've made no longer has the macro assigned to it. How can I fix this?
 

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
Are you using a button from the forms or one of the activex controls? I prefer the activex controls in the VBA toolbox rather then the forms. But they differ in some ways. If you put in a command button from the control toolbox, double click it and then either copy and paste your code in there, or put in something to the effect

Code:
Call mymacroname
 
Upvote 0

Forum statistics

Threads
1,224,585
Messages
6,179,704
Members
452,938
Latest member
babeneker

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