Log in  \/ 
Register  \/ 


How to highlight entire / whole row while scrolling in Excel worksheet? 

If you have a large worksheet with multiple columns, it will be difficult for you to distinguish data on that row. In this case, you can highlight the whole row of active cell so that you can quickly and easily view the data in that row when you scroll down the horizontal scroll bar .This article, I will talk about some tricks for you to solve this problem.

Highlight whole row when scrolling with VBA code

Highlight whole row / column / row and column when scrolling with Kutools for Excel

The following VBA code can help you to highlight a row of selected cell dynamically, please do as follows:

1. Active the worksheet that you want to highlight the whole row of the selected cell, and then right click the sheet tab, and choose View Code from the right-click menu, see screenshot:

doc highlight whole row 1

2. In the opened Microsoft Visual Basic for Applications window, please copy the following code to this blank module:

VBA code: Highlight whole row when scrolling

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
'Updateby Extendoffice
Cells.Interior.ColorIndex = 0
Target.EntireRow.Interior.ColorIndex = 8
End Sub

3. Then save and close this code, now, when you click a cell, the whole row of this selected cell will be highlighted as following screenshots shown:

doc highlight whole row 2
doc highlight whole row 3


1. You can change the highlight color to another you like in this script “Target.EntireRow.Interior.ColorIndex = 8” , change the number 8 to another color index.

2. If you want to disable this code, you just need to go to the Microsoft Visual Basic for Applications window, and delete the code.

3. This code also can highlight the rows of selected range of cells as following result:

doc highlight whole row 4

4. This code is only applied to the current worksheet.

5. If there are some colored cells in your worksheet, the cell color will be lost when you apply this code.

If you would like to try to a new tool -- Kutools for Excel, with its Reading Layout, you can easily highlight the whole row or whole column or both row and column of active cell.

Kutools for Excel : with more than 300 handy Excel add-ins, free to try with no limitation in 30 days. 

After installing Kutools for Excel, please do with following steps:

1. Select a cell or a range of cells where you want to highlight the rows.

2. Click Kutools > Reading Layout drop down button > Reading Layout Settings, see screenshot:

3. In the Reading Layout Settings dialog box, choose one type you need to highlight the row or column under the Shapes section, and then specify a style of this shape, at the same time, you can choose other options, such as color or transparency as you need, see screenshot:

Tips: If you want to highlight the row and column of selected cell, please choose Criss-cross under the Shapes section, and choose Vertical line to highlight the whole column of active cell.

4. After finishing the settings in the dialog box, please click Ok, and now, when you click a cell, the whole row will be highlighted at once. And it will be dynamically moved as the selected cells change.


1. You can cancel this utility by unchecking the Reading Layout again.

2. This Reading Layout feature is applied to all of the worksheets within your workbook.

3. This Reading Layout feature will be disabled when you launch the workbook next time.

4. With this utility, your colored cell will be preserved.

Click to know more details about this Reading Layout.

Download and free trial Kutools for Excel Now !

Kutools for Excel: with more than 300 handy Excel add-ins, free to try with no limitation in 30 days. Download and free trial Now!

The Best Office Productivity Tools

Kutools for Excel Solves Most of Your Problems, and Increases Your Productivity by 80%

  • Reuse: Quickly insert complex formulas, charts and anything that you have used before; Encrypt Cells with password; Create Mailing List and send emails...
  • Super Formula Bar (easily edit multiple lines of text and formula); Reading Layout (easily read and edit large numbers of cells); Paste to Filtered Range...
  • Merge Cells/Rows/Columns without losing Data; Split Cells Content; Combine Duplicate Rows/Columns... Prevent Duplicate Cells; Compare Ranges...
  • Select Duplicate or Unique Rows; Select Blank Rows (all cells are empty); Super Find and Fuzzy Find in Many Workbooks; Random Select...
  • Exact Copy Multiple Cells without changing formula reference; Auto Create References to Multiple Sheets; Insert Bullets, Check Boxes and more...
  • Extract Text, Add Text, Remove by Position, Remove Space; Create and Print Paging Subtotals; Convert Between Cells Content and Comments...
  • Super Filter (save and apply filter schemes to other sheets); Advanced Sort by month/week/day, frequency and more; Special Filter by bold, italic...
  • Combine Workbooks and WorkSheets; Merge Tables based on key columns; Split Data into Multiple Sheets; Batch Convert xls, xlsx and PDF...
  • More than 300 powerful features. Supports Office/Excel 2007-2019 and 365. Supports all languages. Easy deploying in your enterprise or organization. Full features 30-day free trial. 60-day money back guarantee.
kte tab 201905

Office Tab Brings Tabbed interface to Office, and Make Your Work Much Easier

  • Enable tabbed editing and reading in Word, Excel, PowerPoint, Publisher, Access, Visio and Project.
  • Open and create multiple documents in new tabs of the same window, rather than in new windows.
  • Increases your productivity by 50%, and reduces hundreds of mouse clicks for you every day!
officetab bottom
Say something here...
symbols left.
You are guest
or post as a guest, but your post won't be published automatically.
Loading comment... The comment will be refreshed after 00:00.