Sharid
Well-known Member
- Joined
- Apr 22, 2007
- Messages
- 1,064
- Office Version
- 2016
- Platform
- Windows
Hi
I am having an issue with flickering labels on userform, when i do a mouse over. Apart from the flicker they work fine. . I am using labels as buttons as the look better than the vba userform buttons and because, when I tried to you an image as a button, the picture would not display correct, the quality would reduce, but it was fine in a label.
The labels start to flicker when I move the mouse over them, I was looking at this, Mr Excel, but I am not 100% sure how to change it for my labels. Please could someone advise.
Thanks in advance.
I am having an issue with flickering labels on userform, when i do a mouse over. Apart from the flicker they work fine. . I am using labels as buttons as the look better than the vba userform buttons and because, when I tried to you an image as a button, the picture would not display correct, the quality would reduce, but it was fine in a label.
The labels start to flicker when I move the mouse over them, I was looking at this, Mr Excel, but I am not 100% sure how to change it for my labels. Please could someone advise.
VBA Code:
Private Sub MainMenuPageButton_MouseMove(ByVal Button As Integer, ByVal Shift As Integer, ByVal X As Single, ByVal Y As Single)
'MainMenuPageButton border change green on mouse over
MainMenuPageButton.BorderColor = 8435998
'Grey Borders for all other labels
SearchButton.BorderColor = -2147483627
WebBrowserButton.BorderColor = -2147483627
SaveFileButton.BorderColor = -2147483627
EmailButton.BorderColor = -2147483627
LoadFileButton.BorderColor = -2147483627
Sheet2Button.BorderColor = -2147483627
Sheet3Button.BorderColor = -2147483627
Sheet12Button.BorderColor = -2147483627
End Sub
Thanks in advance.