Spreadsheet width

books4cars

Board Regular
Joined
Apr 12, 2007
Messages
200
How do I make the horizontal scrolling limited? I don't want to see more than 20 columns by using the scroll bar with the mouse. I can do it vertically by having no data in lower rows.
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
Try to remove the Horizontal scrolbar by goint into Tolls|Options then uncheck horizontal scrolbar
 
Upvote 0
or maybe you can use the ScrollArea Property

Code:
With ActiveSheet
    .ScrollArea = "a1:t" & .Rows.Count
End With
 
Upvote 0
Press Alt + F11

on the left side, double click This workbook and in the white space that appears on the right side, paste
Code:
Private Sub Workbook_Open()
With ActiveSheet
    .ScrollArea = "a1:t" & .Rows.Count
End With

End Sub

Save and close the workbook (with macros enabled) and reopen it
 
Upvote 0

Forum statistics

Threads
1,224,607
Messages
6,179,871
Members
452,948
Latest member
UsmanAli786

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