ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Customizing a worksheet size (https://www.excelbanter.com/excel-worksheet-functions/12186-customizing-worksheet-size.html)

ElainePhd

Customizing a worksheet size
 
How do you reduce the size of a worksheet so that only 50 rows and/or a
select number of columns can be scrolled.

Gord Dibben

Elaine

Hiding the unused rows and columns then protecting the sheet is one method.

Setting the scrollarea using VBA is another method.

Note: Setting ScrollArea is good for that session only and only the
activesheet. Has to be reset next time workbook is opened.

Best to place the code into a WorkBook_Open Sub in ThisWorkbook module and
specify which worksheet.

Private Sub WorkBook_Open()
Sheets("YourSheet").ScrollArea = "A1:M50"
End Sub


Gord Dibben Excel MVP



On Tue, 8 Feb 2005 12:13:05 -0800, ElainePhd
wrote:

How do you reduce the size of a worksheet so that only 50 rows and/or a
select number of columns can be scrolled.




All times are GMT +1. The time now is 08:34 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com