Macro not working on button click

nando88

Board Regular
Joined
Jun 22, 2013
Messages
124
I have a macro that works correctly when I run it from developer mode, but when I try to run the macro by clicking on a shape that has the macro assigned to it, it does not work.
Can someone please tell me how can I fix this error, since I need to be able to run my macro by clickin on the shape I have created.
Thanks in advance.
 

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
What does the macro look like (please post the code)?
How does it not work? Is it not running at all, or are you getting errors?
If you are getting errors, what are the exact error messages and which lines of code does it highlight when you click "Debug"?
 
Upvote 0
I am not getting any errors, since I was able to successfully run the macro by pressing F5 in the developer tab, but when I try to run the macro by clicking on the shape I assigned it to, it doesn't work.

Do you know what might be the issue?
Please let me know.
Thanks.
 
Upvote 0

Forum statistics

Threads
1,215,231
Messages
6,123,754
Members
449,119
Latest member
moudenourd

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