+ Reply to Thread
Results 1 to 12 of 12

Auto Hightlight Entire Row - only when active cell is on specific columns

  1. #1
    Forum Contributor
    Join Date
    12-20-2014
    Location
    London, England
    MS-Off Ver
    Excel 2016
    Posts
    137

    Auto Hightlight Entire Row - only when active cell is on specific columns

    I want the entire row auto highlighted, only when I press any cell in columns: A, C, I, K, Q, S, T, U, V, W, X, Y, Z, AA.

    thank you

  2. #2
    Forum Contributor
    Join Date
    12-20-2014
    Location
    London, England
    MS-Off Ver
    Excel 2016
    Posts
    137

    Re: Auto Hightlight Entire Row - only when active cell is on specific columns

    I have also posted this question at these sites:
    http://www.ozgrid.com/forum/showthre...407#post735407

  3. #3
    Forum Expert gmr4evr1's Avatar
    Join Date
    11-24-2014
    Location
    Texas
    MS-Off Ver
    Office 2010 and 2007
    Posts
    3,448

    Re: Auto Hightlight Entire Row - only when active cell is on specific columns

    How about this?
    Please Login or Register  to view this content.
    1N73LL1G3NC3 15 7H3 4B1L17Y 70 4D4P7 70 CH4NG3 - 573PH3N H4WK1NG
    You don't have to add Rep if I have helped you out (but it would be nice), but please mark the thread as SOLVED if your issue is resolved.

    Tom

  4. #4
    Forum Expert
    Join Date
    07-31-2010
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    4,070

    Re: Auto Hightlight Entire Row - only when active cell is on specific columns

    Thank you for supplying the link to the other forum as per forum rules. This code will go into the Visual Basic Editor under the applicable sheet code

    Please Login or Register  to view this content.

  5. #5
    Forum Expert gmr4evr1's Avatar
    Join Date
    11-24-2014
    Location
    Texas
    MS-Off Ver
    Office 2010 and 2007
    Posts
    3,448

    Re: Auto Hightlight Entire Row - only when active cell is on specific columns

    My bad, I did the code that didn't specify a range....not paying attention again. Just proves my ".....layer 8" theory. Sometimes I wish I could delete my previous posts.

  6. #6
    Forum Contributor
    Join Date
    12-20-2014
    Location
    London, England
    MS-Off Ver
    Excel 2016
    Posts
    137

    Re: Auto Hightlight Entire Row - only when active cell is on specific columns

    this is perfect thank you. Is there a way to change the highlight colour?

  7. #7
    Forum Contributor
    Join Date
    12-20-2014
    Location
    London, England
    MS-Off Ver
    Excel 2016
    Posts
    137

    Re: Auto Hightlight Entire Row - only when active cell is on specific columns

    i found this code on the internet and like the colour, how can i use with your code?
    -------------------------------------------------------------------------------------------
    Private Sub Worksheet_SelectionChange(ByVal Target As Range)

    Cells.FormatConditions.Delete
    Target.FormatConditions.Add Type:=xlExpression, Formula1:="TRUE"
    Target.FormatConditions(1).Interior.ColorIndex = 24

    End Sub
    -----------------------------------------------------------------------------------------

  8. #8
    Forum Expert
    Join Date
    07-31-2010
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    4,070

    Re: Auto Hightlight Entire Row - only when active cell is on specific columns

    Please Login or Register  to view this content.

  9. #9
    Forum Contributor
    Join Date
    12-20-2014
    Location
    London, England
    MS-Off Ver
    Excel 2016
    Posts
    137

    Re: Auto Hightlight Entire Row - only when active cell is on specific columns

    the first one worked but this code leaves behind the highlighted rows?

  10. #10
    Forum Contributor
    Join Date
    12-20-2014
    Location
    London, England
    MS-Off Ver
    Excel 2016
    Posts
    137

    Re: Auto Hightlight Entire Row - only when active cell is on specific columns

    how can i also change the code so that instead of the entire row being highlighted - only columns B to R are highlighted (that's the row from B to R)

    thanks

  11. #11
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,613

    Re: Auto Hightlight Entire Row - only when active cell is on specific columns

    sorry, mistake
    Last edited by protonLeah; 01-11-2015 at 02:19 AM.
    Ben Van Johnson

  12. #12
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,613

    Re: Auto Hightlight Entire Row - only when active cell is on specific columns

    Please Login or Register  to view this content.

+ 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. Replies: 5
    Last Post: 07-07-2014, 06:42 PM
  2. Replies: 20
    Last Post: 01-11-2014, 05:39 AM
  3. [SOLVED] Select Entire Row of Active Cell
    By [email protected] in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-05-2013, 05:25 PM
  4. [SOLVED] Hightlight Row That Contatins Specific Text
    By AlanF51MS in forum Excel General
    Replies: 4
    Last Post: 07-27-2012, 09:02 PM
  5. Excel 2007 : Auto delete entire rows with specific time
    By shyness_2205 in forum Excel General
    Replies: 1
    Last Post: 01-05-2010, 12:28 AM

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