Reference must be to macro sheet cannot assign macro

dturgel

Board Regular
Joined
Aug 6, 2015
Messages
58
Hi,

I copied a macro to another module and only changed the sheet name it refers to and now when I go to create a macro button and try to assign a macro to it, it won't let me. I get an error that says 'Reference must be to a macro sheet'. Also, when I open the macro dialogue box, the only thing highlighted is the 'create' button. But, I can step into the macro in VBA and run it and when I press play in VBA it runs no problem - anyone know why I can't assign the macro to a button?

Daniel
 

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
Each module must has a different name. Open up your module and rename it. And then assign your button to this new name.
 
Upvote 0

Forum statistics

Threads
1,221,469
Messages
6,160,028
Members
451,611
Latest member
PattiButche

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