Related Content: How to Freeze Selected Panes in Excel (10 Ways)Īlways, click on the cell below the row or rows you want to freeze. Now, select Freeze Panes from the options. Now, click on any cell in row C and click the toolbar. Now, click OK.Īs a result, you can see a quick access toolbar is added and visible. After that, it will be placed in the right side box. So, first, select the Freeze Panes option then click Add. At this point, we have to add the Freeze Panes from the box at the left. In this method, I will show you, how to add the Freez button in the quick access bar and freeze the top two rows in Excel quickly.įirst, go to the top of the worksheet and click on the down arrow, and then more commands, as the following image shows. Method 4: Freeze Top Two Rows By Magic Freeze Button Read More: How to Freeze Panes with VBA in Excel (5 Suitable Ways) Now, if we go back to the workbook, we will see the top two rows are frozen. You can also just click on the Small Play Icon in the sub-menu bar to run the macro. Press F5 on your keyboard or from the menu bar select Run -> Run Sub/User Form. After that, we used another method called ActiveWindows.FreezePanes to freeze the rows we want. Via this code, we are telling excel to freeze rows above row 3:3.īy, Sub we have created a subprocedure FreezingTopTwoRows, after that, we selected the Row above which we want to freeze by Rows.Select method.
HOW TO FREEZE FIRST TWO ROWS IN EXCEL CODE
Now, copy the following code and paste it into the Module. In the pop-up code window, from the menu bar, click Insert -> Module. Press Alt + F11 on your keyboard or go to the tab Developer -> Visual Basic to open Visual Basic Editor. We can freeze the top two rows in Excel VBA also. Method 3: Freeze Top Two Rows in Excel Using VBA Freeze Multiple Panes in Excel (4 Criteria).How to Freeze 2 Columns in Excel (5 Methods).Excel Freeze Panes Not Working (5 Causes with Fixes).Read More: Keyboard Shortcut to Freeze Panes in Excel (3 Shortcuts) If you want me simplify, first press ALT+F, then F, again F. If we look closely, there is a horizontal line in row 2. Let’s see, how to do this.įirst, click on cell A3, as we want to freeze the cell above this row.Īfter that, our screen will look like the image below. We can also use a shortcut key to freeze the top two rows if we want. Method 2: Freezing Top Two Rows Using Shortcut key Read More: How to Freeze Top 3 Rows in Excel (3 Methods)
You can see the top two rows got frozen, we scrolled down to the 20th row, the row is still visible. Now, we have to click the Freeze Panes option from there.Īfter that, our dataset will look like the following image. Now, we will go to the View tab and click Freeze Panes option from there, as shown in the following image. So, the question is, how you will do this.įirst, click below the cell you want to freeze the rows. To lock multiple columns, select the column to the right of the last column you want frozen, choose the View tab, and then click Freeze Panes.4 Quick and Easy Methods to Freeze Top Two Rows in Excel Method 1: Freeze Top Two Rows Using View TabĮxcel has some in-built features to freeze any number of rows or columns.In this data set, we want to freeze the top two rows. To lock multiple rows (starting with row 1), select the row below the last row you want frozen, choose the View tab, and then click Freeze Panes. You will want your cursor to be below the row(s) you want to freeze and to the right of any column(s) you want to freeze. To lock more than one row or column, or to lock both rows and columns at the same time, choose the View tab, and then click Freeze Panes. To lock one column only, choose the View tab, and then click Freeze First Column. To lock one row only, choose the View tab, and then click Freeze Top Row. If you want to freeze both rows and columns, you need to freeze them at the same time. For example, if you freeze row 1 and then decide to freeze column A, row 1 will no longer be frozen. You can choose to freeze just the top row of your worksheet, just the left column of your worksheet, or multiple rows and columns simultaneously. To cancel cell editing mode, press Enter or Esc. The Freeze Panes command is not available when you're in cell editing mode (that is, you're entering a formula or data in a cell) or when a worksheet is protected. You cannot freeze rows and columns in the middle of the worksheet. You can freeze only rows at the top and columns on the left side of the worksheet.
Freeze rows or columnsīefore you choose to freeze rows or columns in a worksheet, it’s important to consider the following: Note: You cannot freeze panes and split panes at the same time.