

- #How to freeze top 3 rows in excel sheet how to#
- #How to freeze top 3 rows in excel sheet code#
- #How to freeze top 3 rows in excel sheet password#
#How to freeze top 3 rows in excel sheet password#
Reuse: Quickly insert complex formulas, charts and anything that you have used before Encrypt Cells with password Create Mailing List and send emails.The Best Office Productivity Tools Kutools for Excel Solves Most of Your Problems, and Increases Your Productivity by 80%

#How to freeze top 3 rows in excel sheet how to#
How to apply freeze / unfreeze panes to multiple worksheets at once? Note: In the above code, the Main-sheet is the sheet name that you want to freeze, you can change it to your need. And then save and close this code, now, when you click any of your worksheet tab, this specific worksheet will be always at the front of your clicked sheet tab, see screenshots: If Application.Sheets("Main-sheet").Index ThenĪpplication.Sheets("Main-sheet").Move Before:=Application.Sheets()Īpplication.Sheets("Main-sheet").Activateģ. VBA code: Freeze or lock a specific worksheet tab Private Sub Workbook_SheetActivate(ByVal Sh As Object)
#How to freeze top 3 rows in excel sheet code#
Then choose ThisWorkbook from the left Project Explorer pane, double click it to open the Module, and then copy and paste following VBA code into the blank Module: Hold down the ALT + F11 keys, and it opens the Microsoft Visual Basic for Applications window.Ģ. In Excel, we can apply the following VBA code to make the specific worksheet always before your current clicked worksheet tab, so that you can always see this worksheet when you scroll across any other sheet tabs. Lock or freeze a specific worksheet tab with VBA code In fact, there is no direct way for you freeze the tab, but, you can use a workaround to deal with this problem. And now, you want to try to lock or freeze this sheet tab to make it always visible even when scrolling across a number of worksheets. Supposing you have a workbook which contains multiple worksheets, there is a worksheet named Main-sheet as the first tab in the workbook. Then choose the Freeze Panes command from the drop-down menu. Then click the Freeze Panes button in the Window button group. How to lock or freeze worksheet tab in Excel? To freeze panes in both columns and rows in a worksheet, select the cell below the row and to the right of the column to freeze.
