disable scroll and hide unused columns and rows

gta1216

Board Regular
Joined
Apr 23, 2016
Messages
63
I have an Excel file that is only using 5 columns and 10 rows. How can I hide the unused column and rows? I know how to highlight the unused columns and rows and right-click hide, but was wondering if there another method. BTW, column A and row 1 is blank. Data starts on column B and row 2.

Since there are only 5 columns and 10 rows being used, can I disable scrolling without using VBA?
 

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
To stop scrolling use
File>>Options>>Advaned>>Display for this workbook>>Uncheck Vertical & Horizontal scroll bars
 
Upvote 0
This only hide the scroll bars, but you can still scroll with the wheel on the mouse. Is there a way to disable scrolling for this specific workbook / worksheet?
 
Upvote 0
Ok try using this snippet of code
When the workbook is opened it will restrict the sheet to the are specified.
VBA Code:
Private Sub Workbook_open()
Sheet1.ScrollArea = "A1:L21" 'adjust ranges to suit
End Sub
 
Upvote 0

Forum statistics

Threads
1,215,050
Messages
6,122,868
Members
449,097
Latest member
dbomb1414

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