Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Column M is mandatory is Column L = "Yes"
How do I build this in? I also need the error message that was in my original code to be kept to, so can I do both of these in the same code? I don't imagine you mean entire columns, so I will assume only one row. Add the following. If Range("L1") = "Yes" And IsEmpty(Range("M1")) Then c.Interior.ColorIndex = 3 Else c.Interior.ColorIndex = 0 End If If Range("L1") = "Yes" And IsEmpty(Range("M1")) _ Then Cancel = True Simply substitute your MsgBox text for mine. Merjet |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Highlighting cells | New Users to Excel | |||
Count cells with numbers and ignore cells with errors | Excel Discussion (Misc queries) | |||
Why errors occur in wrkbook w/ vba when saved on Shared folder? | Excel Programming | |||
Highlighting blanks via GO TO SPECIAL is not highlighting blank cells - HELP, I'm totally stuck. | Excel Discussion (Misc queries) | |||
Highlighting 'corresponding' cells | Excel Programming |