Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I have a UserForm that that has several textboxes and labels, when the
text box changes it calculates and the value is put into a label caption is there a way to get a label to turn red if the value is less than 8.25?? |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Only by checking the value in the textbox on completion, such as the Exit
event, and then setting the label colour. -- HTH Bob Phillips (remove nothere from email address if mailing direct) "damorrison" wrote in message oups.com... I have a UserForm that that has several textboxes and labels, when the text box changes it calculates and the value is put into a label caption is there a way to get a label to turn red if the value is less than 8.25?? |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Try:
If Val(Label1.Caption) < 8.25 Then Label1.BackColor = &HFF& '<===Red Else Label1.BackColor = &H8000000F '<== standard End If "damorrison" wrote: I have a UserForm that that has several textboxes and labels, when the text box changes it calculates and the value is put into a label caption is there a way to get a label to turn red if the value is less than 8.25?? |
#4
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Unbelievable, it really works, at first I put the code in the label1
click and it only worked when I clicked on the label Then I put it in the textbox change, and voila, works every time Thanks, very cool |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Cell Format Changes When Data Is Entered - Not Conditional Formatt | Excel Worksheet Functions | |||
Conditional format of minimum number | Excel Worksheet Functions | |||
Conditional format question | Excel Discussion (Misc queries) | |||
copy conditional format to regular format | Setting up and Configuration of Excel | |||
Conditional Format Question | Excel Worksheet Functions |