I have a series of Command Buttons in a User Form each of which will get different sets of information and poplate fields in the same User Form. I am wondering if there is a way to apply Conditional Formatting to each button based on the value of a specific cell in another worksheet.
The command Buttons are from the Developer Tool Box which appears with the User Form ( not Active x)
(If the cell in sheet 2 has a value > 0 then there is information to be access, other wise not.
Generic Requirement
User Form = frmInformation
Command Button 1
If value cell B2 in "sheet 2" > 0 then Command Button 1 BackColor = RGB(0,255,0)
Else Backcolour = RGB(255,0,0)
Command Button 2
If value cell D2 in sheet 2 > 0 then Command Button 2 Backcolour = RGB(0,255,0)
Else Backcolour = RGB(255,0,0)
Repeated for up to 20 Command Buttons
I assume that in each case I would need to activate Sheet2
The command Buttons are from the Developer Tool Box which appears with the User Form ( not Active x)
(If the cell in sheet 2 has a value > 0 then there is information to be access, other wise not.
Generic Requirement
User Form = frmInformation
Command Button 1
If value cell B2 in "sheet 2" > 0 then Command Button 1 BackColor = RGB(0,255,0)
Else Backcolour = RGB(255,0,0)
Command Button 2
If value cell D2 in sheet 2 > 0 then Command Button 2 Backcolour = RGB(0,255,0)
Else Backcolour = RGB(255,0,0)
Repeated for up to 20 Command Buttons
I assume that in each case I would need to activate Sheet2