Results 1 to 2 of 2

Color Only Specific Cells in Active Row...

Threaded View

  1. #1
    Registered User
    Join Date
    09-20-2008
    Location
    Nebraska
    Posts
    1

    Angry Color Only Specific Cells in Active Row...

    If anyone could help I would greatly appreciate it.

    I need to have the 2nd, 3rd, and 4th cell highlighted / colored in the active row.

    I need the color to be removed upon navigating to a new row.

    The Code I have colors the three cells for me, but it doesn't remove the color when navigating to a new row.

    I just need a way to have the background color automatically cleared upon leaving each active row, and clear only those 3 cells. I have conditional formats and colors all throughout the spreadsheet so only the colored cells only need to be cleared.


    Current Code:

    Private Sub Worksheet_SelectionChange(ByVal Target As Range)

    Dim RR As Range
    Set RR = Target

    Cells(RR.Row, 2).Interior.ColorIndex = 36
    Cells(RR.Row, 3).Interior.ColorIndex = 36
    Cells(RR.Row, 4).Interior.ColorIndex = 36

    End Sub
    Last edited by photonicman; 09-29-2008 at 05:40 PM. Reason: Forgot to put Code In

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Algorithm to change format of specific cells
    By Dave32 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-10-2008, 07:36 PM
  2. 'Active' Cells Issue When Running Macro
    By JamieM in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-10-2007, 05:55 AM
  3. grouping, same name different ph number
    By melbourne in forum Excel General
    Replies: 0
    Last Post: 07-21-2007, 09:22 AM
  4. Multiple Active Cells?
    By MasterCoder84 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-05-2007, 04:30 PM
  5. Getting range of cells with specific text colour, then using in a COUNTIF formulae
    By cheekyflash in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-11-2006, 08:58 PM

Tags for this Thread

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1