number of columns
You can hide what you don't want to see as others have pointed out.
You can also set the scrollarea to a fixed range.
Since the scrollarea method does not stick between sessions you will have to
reset it each time you open the workbook.
You may wish to place the code into a WorkBook_Open Sub in ThisWorkbook module
and specify which worksheet if only one sheet required.
Adjust the sheetname and range to suit.
Private Sub WorkBook_Open()
Sheets("YourSheet").ScrollArea = "A1:G10"
End Sub
Or also in the Thisworkbook module to limit scrollarea on all sheets.
Private Sub Workbook_SheetActivate(ByVal Sh As Object)
With ActiveSheet
.ScrollArea = "A1:G10"
End With
End Sub
Gord Dibben MS Excel MVP
On Sun, 8 Jul 2007 01:52:03 -0700, ekkeindoha
wrote:
Good day,
I would like to know if it is possible to set a worksheet to only have let's
say columns A to G and 1 to 10
|