Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
When a check box is ticked, I would like to automatically change any whote
cells to red, throw up the MsgBox and then change the red back again to white. When I call the macro I get a run-time error '438'. My code that I am trying to use is: Public Sub PriorityWarning() With Sheets(1) Cells.Select If .BackColor = RGB(255, 255, 255) Then .BackColor = RGB(255, 51, 0) End If MsgBox "Priority EPCON1!", vbOKOnly, "EPCON LEVEL" If .BackColor = RGB(255, 51, 0) Then .BackColor = RGB(255, 255, 255) End If End With End Sub Thanks, Mark |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
how do I set all my worksheet background colours to white? | New Users to Excel | |||
Remove white spaces in Back | Excel Discussion (Misc queries) | |||
EXCEL workbook is off-white, goes white in edit mode | Excel Discussion (Misc queries) | |||
Is it possible to make a cell flash between 2 colours? | Excel Worksheet Functions | |||
Excel 2003 font colours and cell colours | Excel Discussion (Misc queries) |