+ Reply to Thread
Results 1 to 6 of 6

Way to highlight current active cell?

  1. #1
    Registered User
    Join Date
    07-10-2005
    Location
    Atlanta
    Posts
    20

    Way to highlight current active cell?

    Is there some setting I can tweak (via Excel menus) so that the currently active cell in a spreadsheet is highlighted, maybe yellow, or is maybe flashing, or something, so I can easily see where I am?

    If there is no such option via Excel menus, is there some kind of VBA script I can add into my PERSONAL.XLS or PERSONAL.XLSB that will achieve the same end?

    I will be grately deepful for any assistance.

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Way to highlight current active cell?

    Hi,

    One way using the Workbook Sheet Selection Change event
    Please Login or Register  to view this content.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Forum Expert Whizbang's Avatar
    Join Date
    08-05-2009
    Location
    Greenville, NH
    MS-Off Ver
    2010
    Posts
    1,395

    Re: Way to highlight current active cell?

    Richard's method works fine if you have no other colored cells in your workbook.

    If you need to preserve cell colors, you can use a Named Range and the following code.

    First, make a named range called "ActiveCell". You can name any cell, it doesn't matter which. The code below will change the reference whenever you select another cell.

    Then put this into your workbook module.

    Please Login or Register  to view this content.
    Then create a conditional formatting rule that applies to all cells ("=$1:$1048576") with the formula "=CELL("address",A1)=ActiveCell"

    Then you need to apply the same conditional formatting rule to all worksheets. Or just change the code above to only be on the selectionchange event of your desired sheet.

    Also, this doesn't work on whichever workbook you have open. I'd need to think about that a bit to make it work on all workbooks without any modification to those workbooks.
    Last edited by Whizbang; 05-04-2015 at 12:55 PM.

  4. #4
    Forum Expert Whizbang's Avatar
    Join Date
    08-05-2009
    Location
    Greenville, NH
    MS-Off Ver
    2010
    Posts
    1,395

    Re: Way to highlight current active cell?

    This article shows how to do what youask with just Conditional Formatting, though it only works on whatever workbook you add the CF to.

    http://www.tushar-mehta.com/publish_...d%20cell.shtml

  5. #5
    Registered User
    Join Date
    07-10-2005
    Location
    Atlanta
    Posts
    20

    Re: Way to highlight current active cell?

    Quote Originally Posted by Richard Buttrey View Post
    Hi,

    One way using the Workbook Sheet Selection Change event
    Please Login or Register  to view this content.
    Can I embed that code in PERSONAL.xls or PERSONAL.XLSB? If so, please give me step-by-step instruction, as I am a total newbie. Thanks.

  6. #6
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Way to highlight current active cell?

    Hi,

    Not sure, although I would think it's highly probable. Let me think about it - it's been a long night & day here in the UK with our general election and I'm somewhat bleary eyed at the moment

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] copy and paste in current active cell, and need current date then scroll down 140 lines
    By vengatvj in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-04-2013, 03:40 AM
  2. [SOLVED] Highlight active cell, un-highlight when no longer active?
    By cdterry in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-20-2013, 02:39 PM
  3. Highlight Active Row macro, and Bold the Active Cell
    By StudentTeacher in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-08-2013, 07:43 PM
  4. Replies: 8
    Last Post: 05-20-2012, 06:06 PM
  5. VBA - Can I select a new active cell based on the value of the current active cell?
    By GrumpyOldBastard in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-08-2012, 07:05 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