You are here:

Excel/Excel 2010 Automatic Cursor Row Highlighting


Hi Bob,

Can you please provide update the following question for Excel 2010.

How do I make a whole row in the spreadsheet to be highlighted when the cursor is in any cell of that particular row.

The second part of your answer below seems to be inplemented differently in Excel 2010.

You need to do 2 things:
1) right-click the sheet tab, select View Code, paste this in:
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
End Sub

2) Select ALL the cells, and, assuming A1 is the active cell, use
Format/Conditional Formatting, change "Cell Value Is" to "Formula Is", and enter this formula:
then click Format, Patterns tab, select your color.

Thank you!!


2) Select ALL the cells, and, assuming A1 is the active cell, use
Home/Conditional Formatting/New Rule, select "Use a formula to determine which cells to format", enter this formula:
then click Format, Fill tab, select your color.
About Excel
This topic answers questions related to Microsoft Excel spreadsheet (or workbook) stand-alone or Mircrosoft Office Excel including Excel 2003, Excel 2007, Office 2000, and Office XP. You can get Excel help on Excel formulas(or functions), Excell macros, charting in Excel, advanced features, and the general use of Excel. This does not provide a general Excel tutorial nor the basics of using a spreadsheet. It provides specific answers to using Microsoft Excel only. If you do not see your Excel question answered in this area then please ask an Excel question here


All Answers

Answers by Expert:

Ask Experts


Bob Umlas


I`m a Microsoft Excel MVP (Most Valuable Professional) and have been since the inception of the program in 1995. I can answer every kind of Excel question except: API, Importing/exporting to other programs (powerpoint, word,...) Also check out my in-person training link at


Worked with MS Excel since version 0.99 (on the Mac!). Was contributing editor to Excellence Magazine, having written >300 articles. John Walkenbach said of me "I finally met someone who knows as much about Excel as I do."

Excellence, The Expert, Microsoft

BA in math, Hofstra University, 1965

Awards and Honors
Led sessions for the Convergence 2004-2006 seminar on Excel tips & tricks

©2017 All rights reserved.