preselected opening page in an excel spreadsheet

  • Thread starter Thread starter Guest
  • Start date Start date
Hi Darren,
watch your terminology.: workbook contains worksheets

pages do not exist until you print.

A workbook will open to the sheet that was active when you last
saved (i.e. closed).
-------------------------------------

If you want to always open to a specific worksheet, you can use
Workbook_BeforeClose see
. http://www.mvps.org/dmcritchie/excel/event.htm

for a specific example you can go a Google Groups search
Workbook_BeforeClose specific sheet group:*Excel*
http://google.com/[email protected]

Sub WorkBook_Open() 'form posting by Gord Dibben 01 Aug 2003
WorkSheets("Sheet1").Activate
End Sub
 
darren said:
how do i get te spreadsheet to open at a predretermined page


Darren,

You could add something like this to the ThisWorkbook code module
(right click on the Excel icon next to File on the menu and choose
View Code):

Private Sub Workbook_Open()
Worksheets("Sheet1").Select
End Sub



This will run every time the workbook is opened only if macros and
events are enabled.


Hope this helps,

Mike
 
Sorry change the occurrences of Workbook_BeforeClose to Workbook_Open.

I wrote the comments before I did the search.
 

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