VBA help

P

PANCAKE

Hey

Is there a way when people are opening a document that they always
comming to the same workblad i wont?

For example:

I have a excel document whit a lot of spreadsheets in it and i want
that when they open the document they always get to the first
spreadsheet named start.

greets
 
B

Bob Phillips

Private Sub Workbook_Open()
Worksheets("Start").Activate
End Sub

'This is workbook event code.
'To input this code, right click on the Excel icon on the worksheet
'(or next to the File menu if you maximise your workbooks),
'select View Code from the menu, and paste the code


--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)
 
S

SIR Knight

PANCAKE,

If you enter the following in the workbook area (ALT + F11, doubleclick
on ThisWorkbook in project window( CTRL + R if not visible))

Copy this in to the ThisWorkbook code window

Private Sub Workbook_Open
Sheets("Start").Select
Range("A1").Select
End Sub

You should then be directed to this page when the workbook is opened
(as long as Macro enabled)

Steve
 
Top