+ Reply to Thread
Results 1 to 4 of 4

Highlight Active Row and Column.

  1. #1
    Registered User
    Join Date
    08-05-2013
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    25

    Lightbulb Highlight Active Row and Column.

    Dear Friends,
    I am looking for a formula for conditional formatting of whole Row and Column in different color when I select a cell. As I move from cell to cell this intersection of color bands should also move to next active cell. I have used the formula
    =AND(CELL("row")=CELL("row",A1),CELL("col")>CELL("col",A1)) for ROW and
    =AND(CELL("col")=CELL("col",A1),CELL("row")>CELL("row",A1)) for COLUMN
    for rows and columns, it is working perfectly but its not highlighting whole row or column. what modification is required in formula?

  2. #2
    Valued Forum Contributor
    Join Date
    10-26-2008
    Location
    Birmingham, UK
    MS-Off Ver
    All versions up to 2010
    Posts
    1,025

    Re: Highlight Active Row and Column.

    Hi
    Cut and paste this code behind the worksheet you will be working on, right-click the worksheet tab and select View Code, then paste the code below and close the window:

    Private Sub Worksheet_SelectionChange(ByVal Target As Range)
    If Target.Cells.Count > 1 Then Exit Sub
    Application.ScreenUpdating = False
    ' Clear the color of all the cells
    Cells.Interior.ColorIndex = 0
    With Target
    ' Highlight the entire row and column that contain the active cell
    .EntireRow.Interior.ColorIndex = 8
    End With
    Application.ScreenUpdating = True
    End Sub

    Good luck.
    Tony

  3. #3
    Registered User
    Join Date
    08-05-2013
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    25

    Exclamation Re: Highlight Active Row and Column.

    Thanks Dear Tony,

    I am looking for formula to be entered in Conditional Formatting. Using VBA code disable other formatting for warning which I do not want to part with.
    Regards,

  4. #4
    Valued Forum Contributor
    Join Date
    10-26-2008
    Location
    Birmingham, UK
    MS-Off Ver
    All versions up to 2010
    Posts
    1,025

    Re: Highlight Active Row and Column.

    Hi
    I am not aware of any method to highlight rows with Conditional Formatting, however I have found a link where you can download an add-in that will do the job for you. See this link:

    http://www.cpearson.com/excel/RowLiner.htm

    Good luck.
    Tony

+ 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. Excel 2007 : To highlight active row and column
    By r1jender in forum Excel General
    Replies: 5
    Last Post: 02-29-2012, 03:12 AM
  2. Highlight the row and column of the active cell
    By ictodd in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 08-20-2011, 09:26 PM
  3. How to highlight active row and column?
    By rjamison in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-14-2005, 02:05 AM
  4. RE: How to highlight active row and column?
    By rjamison in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-13-2005, 08:05 PM
  5. [SOLVED] How to highlight active row and column?
    By Ricktaxx in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-20-2005, 01:06 PM

Tags for this Thread

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