How can I lock both column and rows at the same time using the 'freeze panes' in Excel?
I can manage to freeze either columns or rows, but not both. I can do a similar thing with "split panes", but this isn't quite what I want.
Super User is a question and answer site for computer enthusiasts and power users. It only takes a minute to sign up.
Sign up to join this communityClick on the cell just to the right of the column, and just below the row you want to freeze, and then select View
→Window
→Freeze Panes
→Freeze Panes
.
So, if you want to freeze row 1
and the column A
, click on B2
and select View
→Window
→Freeze Panes
→Freeze Panes
.
If you want to freeze rows 1:3
and columns A:B
, click on C4
and select "Freeze Panes".
Additional Help
Freeze or Lock Rows and Columns
I found it Very Difficult to figure out how to do this for the Top row and for a couple of Columns. I did figure it out however,
First Split the panes
and then move the large black Lines to the rows and columns that you want Static (or Fixed)
you can click Freeze panes > Freeze Panes
and then click Split
or you can just click Split
. if you do anything else in the Freeze Panes
and then Try to Split it will only Give you One Thick Black Line.
if your focus is in the are that is Static (Fixed/Locked) and try to scroll you will scroll only that pane.
I am using Excel 2010
Key is to simply click the Freeze Panes button rather than select the arrow on button. Clicking the Freeze Panes button will freeze both rows and columns according to the pane you've selected, whereas selecting the menu arrow on the Freeze Panes button forces you to select only one option.
Here is a VBA snippet that may help with this.
Columns("D:D").Select
With ActiveWindow
.SplitColumn = 1
.SplitRow = 0
End With
ActiveWindow.FreezePanes = True
Rows("1:1").Select
With ActiveWindow
.SplitColumn = 1
.SplitRow = 1
End With
ActiveWindow.FreezePanes = True