+ Reply to Thread
Results 1 to 4 of 4

Highlight active cell, un-highlight when no longer active?

  1. #1
    Registered User
    Join Date
    02-19-2013
    Location
    United States
    MS-Off Ver
    Excel 2003
    Posts
    2

    Highlight active cell, un-highlight when no longer active?

    So I'm more of a hardware chick that a code writer.... I'm pretty lost most of the time to be honest.

    I have a small chunk of code that highlights the cell I'm actively on, but it does this by filling the interior yellow. Is there a way to remove that formatting on that cell when it is no longer the active cell? This is what I'm using:

    Private Sub Worksheet_SelectionChange(ByVal Target As Range)
    Target.Interior.ColorIndex = 6
    Application.ScreenUpdating = True
    End Sub

    Thanks for any clues!
    -Courtney

  2. #2
    Forum Expert MickG's Avatar
    Join Date
    11-23-2007
    Location
    Banbury,Oxfordshire
    Posts
    2,650

    Re: Highlight active cell, un-highlight when no longer active?

    Try this:-
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    02-19-2013
    Location
    United States
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Highlight active cell, un-highlight when no longer active?

    Ha, perfect! Thank you!

  4. #4
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Highlight active cell, un-highlight when no longer active?

    Maybe:

    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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