Open workbook to same page every time?

  • Thread starter Thread starter RJQMAN
  • Start date Start date
R

RJQMAN

Is it possible to put some code in my workbook so that every time it is
opened it opens to one specific page (worksheet) no matter what page
the workbook was on when it was closed? I have six pages (worksheets).
Thanks in advance.
 
Private Sub Workbook_Open()
Worksheets("Sheet3").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

RP
(remove nothere from the email address if mailing direct)
 
Hi,

In the module of the object "ThisWorkbook" you can add this code :

Private Sub Workbook_Open()
Me.Worksheets("MySheet").Activate
End Sub
 
That is truly amazing. I have read and re-read the four textbooks I
have for two days, and you can answer the questing in 3 lines of code
in 5 minutes. It works perfectly. Many, many thanks. You are
appreciated.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top