+ Reply to Thread
Results 1 to 2 of 2

Active Cell Color

  1. #1
    Registered User
    Join Date
    03-07-2006
    Posts
    16

    Active Cell Color

    How to change active cell color as red or any?

  2. #2
    Gord Dibben
    Guest

    Re: Active Cell Color

    Do you mean you wish to highlight the active cell as you change selection?

    i.e. just active cell is red.

    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 = 3
    Set OldCell = Target
    End Sub

    Note: this is sheet event code. Right-click on the sheet tab and "View Code".

    Copy/paste into that module.

    If not what you're looking for, post back.


    Gord Dibben MS Excel MVP


    On Thu, 9 Mar 2006 08:42:19 -0600, jamex
    <jamex.24eq0y_1141915501.6059@excelforum-nospam.com> wrote:

    >
    >How to change active cell color as red or any?



+ 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