ActiveX command button not enabling

Pookiemeister

Well-known Member
Joined
Jan 6, 2012
Messages
563
Office Version
  1. 365
  2. 2010
Platform
  1. Windows
I have an ActiveX command button on my spreadsheet which when the user presses it, it opens up a userform. The code was written in Excel 2010 but is used on a machine at work running Excel 365. When I first used this file on my work computer it worked as expected but now for whatever reason, the button stopped working and the caption is greyed out. There is no change in the code. Also, sometimes before it did this, if I were to run this file on someone else's computer when I used to click the button it would resize the button but that might be because of their screen resolution but as I stated before, it originally worked. I know if I delete this button and recreate it and named it the same as what is in the code, it works again. But why does it act this way? Thank you for any help offered.
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
ActiveX controls on worksheets are prone to this bug (and others). Excel stores temp files for activex controls (.exd files) and a difference in versioning of the library for an object can cause them to stop working completely (and also cause weird random code errors). Unless you really have to, use a Form control rather than ActiveX.
 
Upvote 0

Forum statistics

Threads
1,214,593
Messages
6,120,435
Members
448,962
Latest member
Fenes

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