How to Change & Restore Default Row Height in Excel

Method 1 – Changing Default Row Height

There are two methods to change the default row height.


1.1. Changing Default Row Height by Altering the Font Size

We can assign a particular row height for the whole workbook. The following table will be used for illustration.

Font Font Size Default Row Height Pixels
Calibri 10 12.75 17
Calibri 11 15.00 20
Calibri 15 19.50 26

We will change the default row height. The row height starts at 0 and ends at 409. The value of the row height is not an integer value because every pixel increases 0.75 to the row height.

⇰ Go to File > Options.

⇰ Change the font size based on your required row height. As we want the row height to be 20 (actually 19.50), we will set the font size 15 as shown in the following image.

Changing Excel Default Row Height

⇰ You will see the following command from Excel. Click OK.

Changing Excel Default Row Height

⇰ When you open a new worksheet, you’ll find that the row height is 19.50.

Changing Excel Default Row Height

This new default row height will work on any number of worksheets or workbooks.


1.2. Changing Default Row Height Using the Row Height Option

⇰ Select the entire worksheet or dataset (the keyboard shortcut is CTRL + A).

⇰ Click on the Format option from the Cells ribbon in the Home tab.

⇰ Choose the Row Height option from the Format option.

Changing Excel Default Row Height

⇰ After selecting the worksheet or dataset, right-click and choose the Row Height option.

Changing Excel Default Row Height

⇰ We will set the row height as 20.

Changing Excel Default Row Height

⇰ You’ll get the following output where the row height is 19.50 because the value of row height will be either 20.25 or 19.50.

You may save the worksheet as an Excel template and use it with the new default row height.

Changing Excel Default Row Height

To explore more methods to change the row height, check out How to Change the Row Height.


Method 2 – Making the Default Row Height Locked

⇰ Select the whole dataset. Right-click and choose the Format Cells option.

Lock the Height

⇰ Go to the Protection tab and check the box “Locked” from the options.

Lock the Height

⇰ Click on the Protect Sheet from the Review tab.

Protect Sheet

⇰ You’ll see the following dialog box. Check the box “Format Cells” and click OK.

Protect Sheet

⇰ The row height of your worksheet is protected and you cannot change the row height.

⇰ If you right-click on the row number, you’ll see that the Row Height option is inactive.

Protect Sheet


Method 3 – What If the Default Row Height is Zero

Sometimes you may have a worksheet, like the sample shown below, which has no visible data.

This is because the default row height of the sheet is 0.

If the Row Height is Zero

⇰ Select the Row Height option from the Format option.

If the Row Height is Zero

⇰ Enter the desired value of row height in the blank space after the Row Height:

If the Row Height is Zero

⇰ You will be able to see the dataset as illustrated in the following image.

If the Row Height is Zero

Read More: How to Auto Adjust Row Height in Excel


Method 4 – Recovering Default Height of Row 

If you have a dataset where the row height is different and you need to restore the default row height, you can do it in two ways.

Recovering Height of Row


4.1. Using the Row Height Option

⇰ Select the dataset.

⇰ Click on the Row Height option from the Format option.

Recovering Height of Row

⇰ Enter the row height as 15 and click OK.

Recovering Height of Row


4.2. Recovering Default Row Height Using VBA

⇰ Open a module by clicking Developer > Visual Basic.

How to Insert VBA Code

⇰ Go to Insert > Module.

How to Insert VBA Code

⇰ Enter the following code into the newly created module.

Sub Recovering_Default_Row_Height()
    Dim hRow As Worksheet
    Set hRow = Worksheets("Recovering_VBA")
    With hRow
        .Cells.UseStandardHeight = True
    End With
End Sub

Recovering Excel Default Row Height Using VBA

In the above code, we have declared hRow as Worksheet and assigned the Worksheets function to indicate the working sheet (the name of the sheet is “Recovering_VBA”) where we want to recover the default row height. We have used Cells.UseStandardHeight to restore the default row height as the UseStandardHeight returns True when the row height is equal to the default row height.

Run the code (the keyboard shortcut is F5 or Fn + F5). You’ll get the following output.

Recovering Excel Default Row Height Using VBA

Read More: How to Copy Multiple Row Height in Excel


Download Practice Workbook


Related Articles


<< Go Back to Row Height | Rows in Excel | Learn Excel

Get FREE Advanced Excel Exercises with Solutions!
Md. Abdul Kader
Md. Abdul Kader

MD. ABDUL KADER is an engineer with a talent for Excel and a passion for VBA programming. To him, programming is like a time-saving wizard, making data manipulation, file handling, and internet interactions a breeze. His skill set extends to SWM, GIS, RS, and SPSS. He holds a B.Sc in Urban & Regional Planning from Chittagong University of Engineering and Technology and has shifted to become a content developer. In this role, he crafts technical content centred around... Read Full Bio

We will be happy to hear your thoughts

Leave a reply

Advanced Excel Exercises with Solutions PDF

 

 

ExcelDemy
Logo