+ Reply to Thread
Results 1 to 7 of 7

Highlight activecell's row and column

  1. #1
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,882

    Highlight activecell's row and column

    Hello everybody
    I have this code that highlight activecell's row and column .. The problem is that it removes interior colors of the cells and I can not color the bakground of any cell ..
    can the code be edited to keep interior colors and to enable me to color the background of any range..
    Please Login or Register  to view this content.

  2. #2
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: Highlight activecell's row and column

    Sure, but with one caveat: this will wipe out all conditional formatting instead.

    This code uses the same logic, but instead applie temporary Conditional Formatting to the row and column which has the benefit of not overwriting normal cell formatting.

    Please Login or Register  to view this content.
    Make Mom proud: Add to my reputation if I helped out!

    Make the Moderators happy: Mark the Thread as Solved if your question was answered!

  3. #3
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,882

    Re: Highlight activecell's row and column

    Great solution I testes it and it is really awesome .. But what about conditional formatting?
    Is there a solution ??!!

  4. #4
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Highlight activecell's row and column

    I went a similar route.

    A Sheet specific macro enters the activecell address into p1

    That triggers two conditional formats.

    Please Login or Register  to view this content.
    Formula: copy to clipboard
    Please Login or Register  to view this content.




    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by mehmetcik; 12-26-2014 at 04:54 PM.
    My General Rules if you want my help. Not aimed at any person in particular:

    1. Please Make Requests not demands, none of us get paid here.

    2. Check back on your post regularly. I will not return to a post after 4 days.
    If it is not important to you then it definitely is not important to me.

  5. #5
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,882

    Re: Highlight activecell's row and column

    Simple and perfect
    Thank you very much for this great solution
    Can it be done to be like the first code? I mean not to highlight all the cells of the row and all the cells of the column ..
    Just highlight the left cells of the active cell and the top cells of the active cells

  6. #6
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Highlight activecell's row and column

    I think so,

    Just and an and to the conditional formats

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files

  7. #7
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,882

    Re: Highlight activecell's row and column

    Excellent solution
    Thank you very much you are wonderful

+ 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] Highlight Row of ActiveCell
    By kicker850 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-30-2013, 05:24 PM
  2. [SOLVED] From Activecell, Paste cell value on current row into column A, Column B, D, and G
    By bg_enigma1 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-08-2012, 03:43 PM
  3. Output contents of Activecell when Activecell may be string or numeric.
    By jfriddle in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-09-2012, 12:27 PM
  4. highlight activecell
    By flow23 in forum Excel General
    Replies: 10
    Last Post: 02-21-2006, 08:10 AM
  5. [SOLVED] How to set ActiveCell to a new column?
    By Carl in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-17-2005, 07:06 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