Locking cells in place?

ianharper68

New Member
Joined
May 16, 2024
Messages
45
Office Version
  1. 2021
Platform
  1. MacOS
Hi All,

Is it possible to lock cells in place so they remain in the same place? I want to do a top and side border where I have highlighted (see image) where I can add navigation buttons, print buttons etc but if I freeze pains say in cell 7C then they still scroll off the page or off the left of the page.

Screenshot 2024-11-14 at 12.11.33.jpg
 

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.
Is there any information ever beyond column M or below row 37? If this is the entirety of information to ever be on this tab, then I would make column M and row 37 (or first column/row without any information) as small as possible, freeze panes there, and hide all columns beyond M and all rows beyond 37.
 
Upvote 0
Solution
Is there any information ever beyond column M or below row 37? If this is the entirety of information to ever be on this tab, then I would make column M and row 37 (or first column/row without any information) as small as possible, freeze panes there, and hide all columns beyond M and all rows beyond 37.
Perfect that works great :)
 
Upvote 0
Or without the need to freezing panes anywhere or hide anything, you could run this small vba code (adjusting the range if required)

VBA Code:
Sub Set_Scroll_Area()
  ActiveSheet.ScrollArea = "A1:L36"
End Sub
 
Upvote 0

Forum statistics

Threads
1,224,820
Messages
6,181,159
Members
453,021
Latest member
Justyna P

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top