svmac said:Hello all,
Is it possible to change the colour of a command button when the user hovers over the button with the mouse pointer?
I would like it to change from the default 'grey' to a blue on hover.
Thanks in advance
Stuart
Private Sub CommandButton1_MouseMove(ByVal Button As Integer, ByVal Shift As Integer, ByVal x As Single, ByVal y As Single)
CommandButton1.BackColor = vbBlue
End Sub
Private Sub UserForm_MouseMove(ByVal Button As Integer, ByVal Shift As Integer, ByVal X As Single, ByVal Y As Single)
CommandButton1.BackColor = Me.BackColor
End Sub