How to Keep Row Headings in Excel When Scrolling (3 Ways)

Suppose we have a large sample data set with 4 columns and 15 rows of data. We will freeze the column and row headings to keep them visible while scrolling.

Sample Data


Method 1 – Using the Freeze Panes Option to Keep Row Headings in Excel When Scrolling

Steps:

  • Select row 5.
  • Go to the View tab.
  • Choose the Freeze Panes Tool.
  • Click on the Freeze Pane option.

Sample Data

  • You will see the row header after scrolling down the data set.

Sample Data

Read More: How to Make a Row Header in Excel


Method 2 – Using the Split Pane Feature to Keep Row Headings in Excel

Steps:

  • Select row 5 to use with the Split Pane Feature.

Handy Approaches to Keep Row Headings in Excel when Scrolling

  • Navigate to the View tab and click on the Split option.

Handy Approaches to Keep Row Headings in Excel when Scrolling

  • Scroll down the data set. The headers are still visible.

Handy Approaches to Keep Row Headings in Excel when Scrolling

Read More: How to Make First Row as Header in Excel


Method 3 – Applying VBA Code to Keep Row Headings in Excel When Scrolling

Steps:

  • Go to the Developer tab.
  • Select the Visual Basic command.

Handy Approaches to Keep Row Headings in Excel when Scrolling

  • The Visual Basic window will open.
  • From the Insert option, choose Module to write VBA Code.

Handy Approaches to Keep Row Headings in Excel when Scrolling

  • Paste the following VBA Code into the Module.
Sub Keep_Row_Headings()
'Freeze will be removed
ActiveWindow.FreezePanes = False
Range("B5").EntireRow.Select
' New Freeze will be created
 ActiveWindow.FreezePanes = True
End Sub

Handy Approaches to Keep Row Headings in Excel when Scrolling

VBA Code Breakdown

  • First, we call our Sub Procedure Keep_Row_Headings_Folder.
  • Then, we refer to our current Worksheet as Active Worksheet.
  • Now, we apply Auto_Freeze for the Active Worksheet.
  • Again, we specify our Range for our desired row to keep visible in the worksheet using Range (“B5”).EntireRow.Select.
  • Finally, the Row Header will be visible on the worksheet.
  • To run the program, click the Run button or press F5.
  • You will see the frozen pane above row 5.

Handy Approaches to Keep Row Headings in Excel when Scrolling

Read More: How to Create a Double Row Header in Excel


Download the Practice workbook


Related Articles


<< Go Back to Rows and Columns Headings | Rows and Columns in Excel | Learn Excel

Get FREE Advanced Excel Exercises with Solutions!
Bishawajit Chakraborty
Bishawajit Chakraborty

Bishawajit Chakraborty, a Rajshahi University of Engineering & Technology graduate with a B.Sc. in Mechanical Engineering, has been associated with ExcelDemy since 2022. Presently, he is a content developer, specializing in Excel Power Query, Data Analysis and VBA. It is worth mentioning that he has authored more than 90 articles on VBA content development. His profound interest lies in the fields of data analytics and data science. He possesses expertise in VBA, Power BI, machine learning, and Python... Read Full Bio

We will be happy to hear your thoughts

Leave a reply

Advanced Excel Exercises with Solutions PDF

 

 

ExcelDemy
Logo