Results 1 to 5 of 5

Thread: [RESOLVED] Changes in Whole Sheet....

  1. #1

    Thread Starter
    Fanatic Member spud's Avatar
    Join Date
    Aug 2000
    Location
    Munster (Germany)
    Posts
    542

    Resolved [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.
    Haven't got anything to say that is the least bit interesting.
    www.tartan-underground.com

  2. #2
    Frenzied Member DKenny's Avatar
    Join Date
    Sep 2005
    Location
    on the good ship oblivion..
    Posts
    1,171

    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

  3. #3

    Thread Starter
    Fanatic Member spud's Avatar
    Join Date
    Aug 2000
    Location
    Munster (Germany)
    Posts
    542

    Re: Changes in Whole Sheet....

    Haven't realy used Exel can you give me an example?
    Haven't got anything to say that is the least bit interesting.
    www.tartan-underground.com

  4. #4
    PowerPoster Static's Avatar
    Join Date
    Oct 2000
    Location
    Rochester, NY
    Posts
    9,390

    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"

  5. #5

    Thread Starter
    Fanatic Member spud's Avatar
    Join Date
    Aug 2000
    Location
    Munster (Germany)
    Posts
    542

    Re: Changes in Whole Sheet....

    Thx Static, DKenny you lern somthing new everyday
    Haven't got anything to say that is the least bit interesting.
    www.tartan-underground.com

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width