default active sheet

A

alldreams

is there a way to set the default active worksheet? I
want to be able to save on sheet2 and have Sheet1 as my
default active sheet when I open the file..

your help is much appreciated
 
K

Katherine Coombs

Alldreams,

Are you looking for a non-VBA way of achieving this?

Katherine
 
F

Frank Kabel

Hi
one way: put the following code in your workbook module:
Private Sub Workbook_Open()
Worksheets("Sheet3").activate
End Sub

change the name of the sheet for your specific worksheet
 
A

alldreams

by workbook module you mean macro? there is no macro in
that workbook. I right click on the sheet's tab,
selected view code, and enter the code there. it didn't
work. Any other suggestions?

thanks!
 
F

Frank Kabel

Hi
you have to put this code in the workbook module. Try the following
- open your workbook
- Hit Alt-F11 to open the VBA editor
- in the left explorer tree double click onf 'ThisWorkbook' (should be
the first entry for your project)
- insert the code in this editor window
- close the VBA editor
- save your workbook
 
G

Guest

thank you
-----Original Message-----
Hi
you have to put this code in the workbook module. Try the following
- open your workbook
- Hit Alt-F11 to open the VBA editor
- in the left explorer tree double click onf 'ThisWorkbook' (should be
the first entry for your project)
- insert the code in this editor window
- close the VBA editor
- save your workbook

--
Regards
Frank Kabel
Frankfurt, Germany


.
 

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

Top