ActiveX command button not enabling

Pookiemeister

Active Member
Joined
Nov 26, 2015
Messages
316
Office Version
  1. 365
  2. 2010
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.
 

Some videos you may like

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().

RoryA

MrExcel MVP, Moderator
Joined
May 2, 2008
Messages
36,534
Office Version
  1. 365
  2. 2019
  3. 2016
  4. 2010
Platform
  1. Windows
  2. MacOS
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.
 

Watch MrExcel Video

Forum statistics

Threads
1,128,113
Messages
5,628,775
Members
416,337
Latest member
tl3phd

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
Top