+ Reply to Thread
Results 1 to 4 of 4

Highlight Row of Active Cell on Worksheet Selection Change

  1. #1
    Forum Contributor
    Join Date
    02-20-2009
    Location
    Manchester, England
    MS-Off Ver
    Excel 2007
    Posts
    467

    Highlight Row of Active Cell on Worksheet Selection Change

    On the attached example I have a table of data in cells B4:V6 (although reality this range of rows could be hundreds). What I want to do to make it is easier on the eye for the user and highlight the cells in columns B:V on the row of the active cell in bold red font. If that is unclear then if I select E5 then B5:V5 should be the cells in bold red font. If then change my active cell to B4 then B5:V5 should return to normal font and B4:V4 should change to bold red font.

    I assume this code would be written in the Worksheet Selection Change procedure but I am not sure how to write the code.

    Thanks for any help.
    Attached Files Attached Files
    Last edited by adam2308; 09-03-2012 at 01:57 AM.

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,486

    Re: Highlight Row of Active Cell on Worksheet Selection Change

    One way:

    Please Login or Register  to view this content.

    Just be aware that this will remove other interior colour formatting on the rows.


    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Contributor
    Join Date
    02-20-2009
    Location
    Manchester, England
    MS-Off Ver
    Excel 2007
    Posts
    467

    Re: Highlight Row of Active Cell on Worksheet Selection Change

    This works great thank you!

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,486

    Re: Highlight Row of Active Cell on Worksheet Selection Change

    You're welcome. Thanks for the rep.

+ 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