startup sheet?

J

Johnnyjomp

Hi there...
Is there a way to select which sheet will be displayed when a workbook
is opened? There does not seem to be any rhyme or reason to this.
TIA!
John
 
T

tim m

As far as I know it will open up to whatever sheet was open when last saved.
(And thats what happened when I did a little test just now.)
 
M

Max

Johnnyjomp said:
Is there a way to select which sheet will be displayed
when a workbook is opened ?

If we want it to open always with say, Sheet1's A1 selected,
we could tinker with this ..

Right-click on the Excel icon* > View Code
*icon just to the left of "File" on the main menu bar
(Above will bring us direct into the "ThisWorkbook" code window)

Then copy > paste the code below into the code window

'----
Private Sub Workbook_Open()
Sheets("Sheet1").Select
Range("A1").Select
End Sub
'----

Press Alt+Q to get back to Excel. Save the file after typing something in a
cell on another sheet (other than Sheet1), close and exit. Test it out by
re-opening the file. It should open in Sheet1's A1.
 

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