+ Reply to Thread
Results 1 to 11 of 11

highlight horizontal row - please help

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

    highlight horizontal row - please help

    I have a currency table (see attached) and want to be able to highlight entire row (1 to 48) whenever I select any cell within the table - from cell C10 to Q57. So the horizontal cells corresponding to the selected cell should be highlighted from C to Q.

    I don't want the horizontal highlight to change my black background colour outside my table, or interfere with my cell fill or text colours (I could play around with colours to solve this later myself maybe).

    please please help me, I looked around so long but found nothing.

    Thank you

    I have also posted this question here
    http://www.ozgrid.com/forum/showthre...errerid=282556Attachment 404341
    Attached Files Attached Files
    Last edited by John19; 06-29-2015 at 09:42 PM.

  2. #2
    Valued Forum Contributor quekbc's Avatar
    Join Date
    01-18-2010
    Location
    Sydney, Australia
    MS-Off Ver
    2010, 2013, 2016
    Posts
    1,149

    Re: highlight horizontal row - please help

    You'll need a macro to do this.

    I've added a macro to Sheet1 object within the VBA. I've also added 3 new named ranges, and a conditional formatting formula.
    Attached Files Attached Files

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

    Re: highlight horizontal row - please help

    perfect! exactly what I was after, and so fast I can't believe how quickly you resolved it.

    THANK YOU EVER SO MUCH!

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

    Re: highlight horizontal row - please help

    to incorporate this into my actual workbook sheet do I just copy and paste the vba code and create the same conditional formatting? is there any other part to it?

  5. #5
    Valued Forum Contributor quekbc's Avatar
    Join Date
    01-18-2010
    Location
    Sydney, Australia
    MS-Off Ver
    2010, 2013, 2016
    Posts
    1,149

    Re: highlight horizontal row - please help

    Yes, I would do the following in this order:

    1) Create the 3 new named ranges
    2) Apply the conditional formatting
    3) Copy the VBA code over.

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

    Re: highlight horizontal row - please help

    right that explains it, "named ranges" know nothing about that, where is it, how do i copy it?

  7. #7
    Valued Forum Contributor quekbc's Avatar
    Join Date
    01-18-2010
    Location
    Sydney, Australia
    MS-Off Ver
    2010, 2013, 2016
    Posts
    1,149

    Re: highlight horizontal row - please help

    Whoa, isn't it like, 4.45am up in London?

    They are at.. Formulas tab --> Name Manager (or Alt --> M --> N) but the easiest way to copy across is to do the following.

    In the file I uploaded, choose 3 random blank cells, say... Q1, Q2 and Q3

    Q1: =SelectedRow
    Q2: =SelectedColumn
    Q3: =ColumnWithinRange

    Then copy Q1:Q3, and paste it over at your other workbook. That should import the 3 named ranges over.

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

    Re: highlight horizontal row - please help

    done it! works perfectly!
    yes its 4.54 am now - and I know I'm mad staying up all night for this, day at home tomorrow sleep the whole day. ALL BECAUSE I WANT TO GET THE COLOURS RIGHT!!! MAD

  9. #9
    Valued Forum Contributor quekbc's Avatar
    Join Date
    01-18-2010
    Location
    Sydney, Australia
    MS-Off Ver
    2010, 2013, 2016
    Posts
    1,149

    Re: highlight horizontal row - please help

    Haha, the things we do for Excel.

    Hope you have a good sleep. Please close this thread if it is all resolved.

    Thread Tools above your first post, "Mark your thread as Solved"

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

    Re: highlight horizontal row - please help

    OK thanks will do

    good afternoon to you there

  11. #11
    Forum Expert
    Join Date
    12-10-2006
    Location
    Sydney
    MS-Off Ver
    Office 365
    Posts
    3,525

    Re: highlight horizontal row - please help

    Just for reference - John19 has also said this was solved by my solution here.
    ____________________________________________
    Please ensure you mark your thread as Solved once it is. Click here to see how
    If this post helps, please don't forget to say thanks by clicking the star icon in the bottom left-hand corner of my post

+ 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] In pivot match vertical row amount with the horizontal column -amount and highlight that
    By Goku in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-21-2013, 02:04 AM
  2. [SOLVED] Copying and pasting Horizontal Data to Horizontal cells
    By jjin in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-11-2013, 01:14 AM
  3. Replies: 2
    Last Post: 06-27-2012, 12:27 PM
  4. Replies: 2
    Last Post: 03-11-2011, 09:02 AM
  5. Replies: 5
    Last Post: 05-27-2005, 02:05 PM

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