hiding unued rows and column

  • Thread starter Thread starter Link
  • Start date Start date
L

Link

I have a worksheet with about one page of information. If there another way
to make the unused columns and rows not visible apart from using format
column/row hide?
 
Other than hiding the unused area there is nothing.

You could set a scrollarea so's users can't move out of that defined range.

Set the scrollarea to a range using VBA.

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:M36"
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:M36"
End With
End Sub


Gord Dibben MS Excel MVP
 
Back
Top