ipbr21054
Well-known Member
- Joined
- Nov 16, 2010
- Messages
- 5,226
- Office Version
- 2007
- Platform
- Windows
Hi,
This works for me but need some help please to allow it to work for a range as opposed to the current 1 TextBox.
On my userform i have 26 textboxes & the code should work like so.
If TextBox1 - TextBox26 has a value of 0 Then
The TextBox background color should be vbRed
If the value is greater than 0 Then
The TextBox background should be vbWhite
Thanks
This works for me but need some help please to allow it to work for a range as opposed to the current 1 TextBox.
On my userform i have 26 textboxes & the code should work like so.
If TextBox1 - TextBox26 has a value of 0 Then
The TextBox background color should be vbRed
If the value is greater than 0 Then
The TextBox background should be vbWhite
Rich (BB code):
If Me.TextBox1.Value = "0" Then
Me.TextBox1.BackColor = vbRed
Else
Me.TextBox1.BackColor = vbWhite
Thanks