Right Click Disabled on Buttons with Assigned Macros

VanceLiving

New Member
Joined
Mar 5, 2013
Messages
45
Hello,

I use Excel 2010 and about a week ago, for whatever reason, my right-click ability was disabled in Excel only. I have replaced certain functionality on individual basis with code (see below) that has re-enabled my ability to right-click on rows, columns, and sheets.
Public Sub reset()
Application.CommandBars("Cell").Enabled = True
Application.CommandBars("Row").reset
Application.CommandBars("Row").Enabled = True
Application.CommandBars("Column").reset
Application.CommandBars("Column").Enabled = True
Application.CommandBars("Ply").Enabled = True

End Sub

However, I am also unable to right-click on buttons which have assigned macros and I cannot find the solution. I thought the code below would do the trick but no luck. Any idea what might work? Thanks in advance for your help!!

Application.CommandBars("Button").reset
Application.CommandBars("Button").Enabled = True

-Vance
 

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
If your CommandButtons are from the Control Toolbox you need to be in Design mode to right click them. For Form controls the CommandBar is "Excel Control".
 
Upvote 0

Forum statistics

Threads
1,224,271
Messages
6,177,610
Members
452,785
Latest member
3110vba

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