Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
My macro, below, is not working:
Sub SelIfRed() Dim rng As Range, c As Range Set rng = Selection For Each c In rng If cell.Font.ColorIndex = 3 Then ' Change if not correct value for rng.EntireRow.Select End If Next c End Sub It fails he If cell.Font.ColorIndex = 3 Then I can't see what the problem is. Can anyone see something that I'm not seeing? Thanks, Ryan--- -- RyGuy |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
why does this macro select the entire worksheet when run? | Excel Discussion (Misc queries) | |||
Select the entire row | Excel Discussion (Misc queries) | |||
select entire rows using a contains comparison - an example | Excel Programming | |||
How to select entire column using VBA | Excel Programming | |||
select contents of entire worksheet | Excel Programming |