LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.misc
Cue Cue is offline
external usenet poster
 
Posts: 47
Default Find Values in Range Then Color

Hello,

The following code finds the value of the cell then colors the cell. I would
like the code to find all of the cells in a range ($A$65000:$A$65125) and
color each of them. Can someone tell me or show what to add or change to
accomplish this?

Sub find_and_color()
Dim rCell As Range
Dim whatwant As String
whatwant = Sheets("300-+").Range("$A$65000").Value
For Each rCell In Sheets("MultAdjDaily").Range("$C$6:$C$3001")
If rCell.Value Like whatwant Then
rCell.Interior.ColorIndex = 33
End If
Next rCell
End Sub

Thanks!
--
Cue
 
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
Find all same values from defined range Jeff Gordon Excel Worksheet Functions 5 December 6th 07 10:29 PM
Find a range of values in a range of cells Jack Taylor Excel Worksheet Functions 20 November 25th 06 01:26 PM
To find duplicated values in a range beechum1 Excel Worksheet Functions 1 February 10th 06 04:31 AM
Find dates in a range; then sum values in that range by a criteria Anders Excel Discussion (Misc queries) 4 October 21st 05 03:41 PM
How do I find the two lowest values in a range? dlroelike Excel Worksheet Functions 3 February 21st 05 12:12 AM


All times are GMT +1. The time now is 11:07 AM.

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"