03856me
Active Member
- Joined
- Apr 4, 2008
- Messages
- 297
I found the following code which works for changing the back color of the textbox to black when you enter and then turns it red when you exit.
How do I find the codes for different colors - Excel 2010? Anyone have a link to those descriptions?
=========================================
Private Sub TextBox1_Enter()
TextBox1.BackColor = &H80000006
End Sub
Private Sub TextBox1_Exit(ByVal Cancel As MSForms.ReturnBoolean)
TextBox1.BackColor = &HFF&
End Sub
How do I find the codes for different colors - Excel 2010? Anyone have a link to those descriptions?
=========================================
Private Sub TextBox1_Enter()
TextBox1.BackColor = &H80000006
End Sub
Private Sub TextBox1_Exit(ByVal Cancel As MSForms.ReturnBoolean)
TextBox1.BackColor = &HFF&
End Sub