Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Stop Excel mouse cursor from flickering over button

When I create a button with a macro attached to it, and hover the mouse cursor over the button, it flickers between the default pointing hand cursor and what looks like an all-white pointing hand that's 1 pixel further left.

Any ideas how to fix this?

like image 655
Joe Avatar asked Apr 12 '12 22:04

Joe


1 Answers

I was having a similar problem (if not the same problem).

  1. When not moving the mouse, but hovering over a button, the hand appears to flicker.
  2. When moving the mouse, and passing over a button, the hand flickers and the cursor slows down.

Referencing Scoox' solution, I placed the code in a function to fire when the workbook opens.

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

This eliminated the stationary mouse flickering and the lag in the pointer movement over the button. However, if you move slowly over the button, there still some slight flickering.

like image 97
DavidH Avatar answered Oct 11 '22 16:10

DavidH