View Single Post
  #5   Report Post  
Posted to microsoft.public.excel.misc
Gord Dibben Gord Dibben is offline
external usenet poster
 
Posts: 22,906
Default Insert my own scroll bars

Even if Kathy finds the ScrollArea using your steps, she will find that this
method does not stick when you close the workbook.

Since the scrollarea method does not stick between sessions you will have to
reset it each time.

You may wish to place the code into a WorkBook_Open Sub in ThisWorkbook module
and specify which worksheet if only one sheet required.

Private Sub WorkBook_Open()
Sheets("YourSheet").ScrollArea = "A1:T30"
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:T30"
End With
End Sub


Gord Dibben MS Excel MVP





On Fri, 2 Feb 2007 12:28:00 -0800, Newbeetle
wrote:


Hi do you mean limit to cells that you require, if so, on your worksheet
tab select view code, then on the properties on the left hand side select
scroll area, and input cell range ie, if you wish to be able to scroll to
"A1:J58" the type this into the box!.


"Kathy" wrote:

I am using Excel to create a report and would like to define scroll bar
region. How do I do this?