LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,836
Default Select Entire Row if Text is Red

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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
why does this macro select the entire worksheet when run? Dave F Excel Discussion (Misc queries) 6 March 1st 07 01:19 PM
Select the entire row shantanu oak Excel Discussion (Misc queries) 5 July 17th 06 11:34 AM
select entire rows using a contains comparison - an example [email protected] Excel Programming 0 April 5th 06 11:43 PM
How to select entire column using VBA Phill Excel Programming 3 December 5th 03 03:44 PM
select contents of entire worksheet Dave[_22_] Excel Programming 5 August 1st 03 04:17 PM


All times are GMT +1. The time now is 02:08 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"