Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I want to do some formatting for the cells with Validation.
For example in the enclosed code I begin to check cells from B9 down - if Validation exists (I have Dropdown lists there), then I change interior color. But my method fails (generates error in the first cell without Validation) and is not general. Could you give me a hint? Leszek Sub change_cells_with_validation() Dim for_change As Range Set for_change = Range("B9") 'How to change following line to check if any Validation exists? Do While for_change.Validation.InCellDropdown = True for_change.Interior.ColorIndex = 35 Set for_change = for_change.Offset(1, 0) Loop End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Checking if Sheet Exists? | Excel Discussion (Misc queries) | |||
checking if an url exists | Excel Programming | |||
Checking if a worksheet already exists... | Excel Programming | |||
Checking to see if Folder exists | Excel Programming | |||
Checking 2 c if workbook exists | Excel Programming |