+ Reply to Thread
Results 1 to 2 of 2

change highlight color on active cells

  1. #1
    Louis
    Guest

    change highlight color on active cells

    How do I change the active highlight color of an active cell.

  2. #2
    Gord Dibben
    Guest

    Re: change highlight color on active cells

    Louis

    Only though VBA.

    Private Sub Worksheet_SelectionChange(ByVal Target As Excel.Range)
    Static OldCell As Range
    If Not OldCell Is Nothing Then
    OldCell.Interior.ColorIndex = xlColorIndexNone
    End If
    Target.Interior.ColorIndex = 6 'yellow
    Set OldCell = Target
    End Sub

    This is sheet event code.

    Right-click on the sheet tab and "View Code". Copy and paste into that
    module.

    Chip Pearson has a great add-in named Rowliner.xla that will make the
    highlighting available for all sheets and workbooks.

    The code above was cribbed from Chip to start with.

    http://www.cpearson.com/excel/RowLiner.htm


    Gord Dibben Excel MVP



    On Tue, 22 Nov 2005 09:11:09 -0800, "Louis" <[email protected]>
    wrote:

    >How do I change the active highlight color of an active cell.



+ 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