Limiting the size of a worksheet

  • Thread starter Thread starter Ulf Liljensten
  • Start date Start date
U

Ulf Liljensten

I need to keep the scrollbars but limit the size of a worksheet to keep
the users from scrolling around outside of my application. I would like
to simply remove all rows/columns after a certain row/column number.
Anyone knows the easiest way do do this?

thanks,

Ulf
 
Ulf

Couple of options.

1. Hide the columns you don't want to be visible.

2. You may want to try setting the Scroll Area.

This setting will not remain after closing the file.
Place a code line in the Workbook open event to set it
each time when you open the workbook

Private Sub Workbook_Open()
Sheets("Sheet1").ScrollArea = "A1:H40"
End Sub

Adjust to your sheetname and range.

Gord Dibben Excel MVP
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top