View Single Post
  #2   Report Post  
Roger Govier
 
Posts: n/a
Default Open Workbook At A Set Page

Hi Brian

Do you have a Sheet1?
If not change code to include your sheet name.

Regards

Roger Govier


Brian Hearty via OfficeKB.com wrote:
There is a web site called www.officearticles.com that explains some good
tips on using excel. However, I am having difficulties getting one of the
tips to work.
To ensure that a workbook is opened at a specific page regardless of where
the last user was within the book when he/she saved and closed it the
following piece of VB code is suggested:

While in Visual Basic Editor, double-click ThisWorkbook and enter the
following code:
Private Sub Workbook_Open()
Range("Sheet1!A1").Activate
End Sub

Unfortunately I get a run time error each time I attempt to run it - is there
something extra that needs to be included in the code in order for it to run
correctly?