Share via

Excel Macro Command Button Not Working

Anonymous
2019-07-03T11:53:39+00:00

Hi everyone,

I have a user who is unable to click command buttons in Excel sheets, but these same buttons work for other people.

When clicking the button a "ghost" of that button will appear in some location around it, and if that ghost intersects with the original button it can be clicked and the macro will run. See below for an example screenshot.

This user can run the macro manually, or with an associated keyboard shortcut, it is just the command buttons that do not work. We created a test worksheet on the user's machine and the macro button will not work, but sending the same file to my machine the button will work.

I have tried an online Office repair, checked macros are enabled, compared settings to my own but nothing seems out of place.

Any assistance with this would be much appreciated!

Microsoft 365 and Office | Excel | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

12 answers

Sort by: Most helpful
  1. Anonymous
    2020-02-18T18:35:41+00:00

    Turns out it was the external monitor and had something to do with auto-sizing when I dragged the spreadsheet to the external monitor.  Only fix is to just leave that spreadsheet on the laptop and not drag it over.

    Was this answer helpful?

    60+ people found this answer helpful.
    0 comments No comments
  2. Anonymous
    2019-07-25T09:57:30+00:00

    I have the same issue. There appears to be a bug. I read in another forum that if you use a docking stations (as I do), I should remove my laptop from the dock and try again. Low and behold the buttons worked again. [I redocked and they are currently still working]. 

    MSFT can you please address this bug. 

    [Edit] .  Okay, once redocked buttons fail to work again. - Current (unexceptable) solution, only access files with command buttons 'undocked'.

    Was this answer helpful?

    20+ people found this answer helpful.
    0 comments No comments
  3. Anonymous
    2020-02-17T19:23:21+00:00

    The text 'CommandButton1' in the original post suggests to me that Sam (maybe others?) might be using an ActiveX button instead of a Forms button (which I'd expect to have the default label of "Button 1"). I'd suggest trying a forms button, and testing with the same user(s) to see if that avoids the problem.

    I gave up using all ActiveX controls in my projects years ago because of how squirrely they are, especially when trying to deploy and maintain over multiple end users (all with machines with slightly different configurations). My issues were more around functionality and unexpected machine crashes, so your mileage may vary...

    Just something worth trying, since it looks like this thread has been open a while and keeps getting new hits. If the folks on this thread reply saying they are also experiencing the same issue with forms buttons, then I'm out of ideas...

    Was this answer helpful?

    10+ people found this answer helpful.
    0 comments No comments
  4. Anonymous
    2020-05-10T20:44:29+00:00

    I had same issue, found that its not issue with the dock, its with HDMI connection, when I remove the HDMI connection, it works perfectly. THe VBA executes when I click command button.

    Was this answer helpful?

    10 people found this answer helpful.
    0 comments No comments
  5. Anonymous
    2020-06-29T11:54:55+00:00

    I agree that this is the problem. What happens on my set up is that if you click on a command button while connected via dock+hdmi the text just gets smaller and smaller and smaller and … All parts (apart from the display) are supplied by Microsoft.

    This is a major irritation, making Excel on a modern large display set-up unusable.

    Was this answer helpful?

    9 people found this answer helpful.
    0 comments No comments