Locking cells in place?

ianharper68

New Member
Joined
May 16, 2024
Messages
26
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

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand
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,223,894
Messages
6,175,252
Members
452,623
Latest member
Techenthusiast

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