[tt]Here are two example macros that will run as soon as excel opens:
This macro opens the workbook at sheet 1 even if you save it at page 100
1.
Option Explicit
Private Sub Workbook_Open()
Worksheets("Sheet1".Select
Application.Goto Reference:="Cell Location"
End Sub
This macro opens your document at 80% it's size
2.
Private Sub Workbook_Open()
ActiveWindow.Zoom = 80
End Sub
T ® Ñ ¥
To keep a lamp burning we have to keep puting oil in it.
You can't put these subs just anywhere - they belong in the code for the workbook object. Double-click on the workbook name in the VBE project explorer (top left of VBE screen) to get to that code module, and then create your workbook_open sub there. Rob
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.