+ Reply to Thread
Results 1 to 6 of 6

how to make cell selection light up whole row

  1. #1
    Forum Contributor
    Join Date
    06-24-2008
    MS-Off Ver
    2007
    Posts
    139

    how to make cell selection light up whole row

    Is there a way to light up a row when a cell in that row is selected?
    I'm working within columns A through H.
    Last edited by novice2430; 07-01-2009 at 08:46 PM.

  2. #2
    Forum Expert pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2016
    Posts
    5,330

    Re: how to make cell selection light up whole row

    hi novice2430
    Try this code
    Please Login or Register  to view this content.
    If the solution helped please donate to RSPCA

    Site worth visiting: Rabbitohs

  3. #3
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: how to make cell selection light up whole row

    A slight adaptation to fit the OPs request for columns A:H only.
    Please Login or Register  to view this content.
    NOTE: A sheet macro like this will remove any formatting in those columns.

    Right-click on the sheet tab name and select VIEW CODE, paste in the macro above.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  4. #4
    Forum Contributor
    Join Date
    06-24-2008
    MS-Off Ver
    2007
    Posts
    139

    Re: how to make cell selection light up whole row

    Thanks for the quick response.
    JBeaucaire,
    I used your code, but I had problems when I extended the columns to K for another worksheet.
    When I Select a cell within A:K there's color left in I,J,and K.
    I've attached a sample.
    Attached Files Attached Files

  5. #5
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: how to make cell selection light up whole row

    There are THREE instances where the range is referenced, you only changed two of them:
    Please Login or Register  to view this content.

    Last edited by JBeaucaire; 07-01-2009 at 09:14 PM.

  6. #6
    Forum Contributor
    Join Date
    06-24-2008
    MS-Off Ver
    2007
    Posts
    139

    Re: how to make cell selection light up whole row

    Oh Okay,
    That's why leave the VBA to people who know about it...lol
    Well Thanks for taking a look and solving my problem.

+ 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