View Single Post
  #7   Report Post  
Posted to microsoft.public.excel.misc
Gord Dibben Gord Dibben is offline
external usenet poster
 
Posts: 22,906
Default Freezing columnes and rows

You could set the scrolling area through 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:F27"
End Sub

Or this in the Thisworkbook module to limit scrollarea on all sheets.

Private Sub Workbook_SheetActivate(ByVal Sh As Object)
With ActiveSheet
.ScrollArea = "A1:F27"
End With
End Sub


Gord Dibben MS Excel MVP

On Wed, 15 Oct 2008 09:58:01 -0700, Brenda
wrote:

That isn't what i am looking for i did get that to work but you can still
scroll down and i don't want them to be able to scroll down at all. How do i
fix that please refer to my orginal message. thanks