breynolds0431
Active Member
- Joined
- Feb 15, 2013
- Messages
- 303
- Office Version
- 365
- 2016
- Platform
- Windows
Hello:
I have the following set up to change my CommandButton upon mouseover. But what I would like is for the command button to return to the original fore/back colors after mouse-off. Is this possible? I am also not using a UserModule. Just a commandbox set to be visible based on another cell's value. FYI...
Private Sub CommandButton1_MouseMove(ByVal Button As Integer, ByVal Shift As Integer, ByVal X As Single, ByVal Y As Single)
CommandButton1.ForeColor = RGB(191, 191, 191)
CommandButton1.BackColor = RGB(31, 78, 120)
End Sub
Thank you in advance!
I have the following set up to change my CommandButton upon mouseover. But what I would like is for the command button to return to the original fore/back colors after mouse-off. Is this possible? I am also not using a UserModule. Just a commandbox set to be visible based on another cell's value. FYI...
Private Sub CommandButton1_MouseMove(ByVal Button As Integer, ByVal Shift As Integer, ByVal X As Single, ByVal Y As Single)
CommandButton1.ForeColor = RGB(191, 191, 191)
CommandButton1.BackColor = RGB(31, 78, 120)
End Sub
Thank you in advance!