|
-
Jun 7th, 2006, 08:24 AM
#1
Thread Starter
Fanatic Member
[RESOLVED] Changes in Whole Sheet....
To change a cell to red when certain text is inserted I have used this:
Private Sub Worksheet_Change(ByVal Target As Range)
If Range("A1").Text = "RTU" Then
Range("A1").Interior.Color = RGB(255, 0, 0)
End If
End Sub
what I would like to do is If any Cell in the worksheet has this value it changes to Red?
thx
Last edited by spud; Jun 7th, 2006 at 08:30 AM.
-
Jun 7th, 2006, 08:32 AM
#2
Re: Changes in Whole Sheet....
Spud
Why don't you use conditional formatting to achieve this? That would be a much easier way.
Declan
Don't forget to mark your Thread as resolved.
Take a moment to rate posts that you think are helpful 
-
Jun 7th, 2006, 08:52 AM
#3
Thread Starter
Fanatic Member
Re: Changes in Whole Sheet....
Haven't realy used Exel can you give me an example?
-
Jun 7th, 2006, 09:02 AM
#4
Re: Changes in Whole Sheet....
ok.. in the sheet.. click the top corner box (left of A and above 1)
the WHOLE sheet will be selected
then in the menus
select FORMAT > Conditional Formatting
Condition1
Cell Value Is - [Change to "Equal to" in the second combo] - and enter RTU in the third box
clikc the format button
select the Pattern tab
select RED
click OK
click OK
JPnyc rocks!! (Just ask him!)
If u have your answer please go to the thread tools and click "Mark Thread Resolved"
-
Jun 7th, 2006, 09:09 AM
#5
Thread Starter
Fanatic Member
Re: Changes in Whole Sheet....
Thx Static, DKenny you lern somthing new everyday
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|