Blinking Cell in Excel VBA

Anonymous
2020-02-24T19:56:06+00:00

I have VBA code to make Column F to blink

  1. When I click on macro I can't see CommandButton1
  2. I have an error code
  3. I click OK and the macro starts running with the below error and I have to repeat that action 5 times

  1. My macros aren't disable

VBA Code

When I click on command button Color 3 and I click OK and run the command button again

Color 8

Color 10

Color 5

Color 0

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
{count} votes
Answer accepted by question author
  1. HansV 462.4K Reputation points MVP Volunteer Moderator
    2020-02-24T21:40:02+00:00

    Check whether you have created two macros named StopNow. There should be only one.

    Also: make sure that you haven't named the module StopNow. That would confuse VBA.

    1 person found this answer helpful.
    0 comments No comments

7 additional answers

Sort by: Most helpful
  1. HansV 462.4K Reputation points MVP Volunteer Moderator
    2020-02-24T21:29:56+00:00

    It looks like the first command button is an ActiveX Controls command button, whose OnClick code is in the worksheet module.

    The second command button (Stop Now) is a Form Controls command box. The macro for this button should be StopNow. You should be able to select it from the list of available macros in the Assign Macro dialog.

    0 comments No comments
  2. Anonymous
    2020-02-24T21:34:25+00:00

    Stop now button

    0 comments No comments
  3. Anonymous
    2020-02-24T22:18:10+00:00

    It works perfectly. Thanks again.

    0 comments No comments