Stop Excel mouse cursor from flickering above a button

When I create a button with a macro attached to it and hover over the button, it flickers between the default cursor and what looks like a white pointing hand, the remaining 1 pixel.

Any ideas how to fix this?

+6
source share
2 answers

I had a similar problem (if not the same problem).

  • When you do not move the mouse, but move the cursor over the button, the pen seems to flicker.
  • When you move the mouse and pass the button, the pen flickers and the cursor slows down.

In summarizing the Scoox solution, I put the code in a function that fires when the book is opened.

Private Sub Workbook_Open() Application.Cursor = xlNorthwestArrow End Sub 

This eliminated the flicker of the fixed mouse and the delay in moving the pointer over the button. However, if you are moving slowly on the button, there is still a slight flicker.

+1
source

Place the following code before the code that causes the mouse pointer to blink an hourglass.

 Application.Cursor = xlNorthwestArrow 'Stops mouse pointer flashing hourglass 

This should stop blinking.

0
source

Source: https://habr.com/ru/post/913088/


All Articles