ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Choosing which sheet opens (https://www.excelbanter.com/excel-worksheet-functions/82985-choosing-sheet-opens.html)

josephdmcc

Choosing which sheet opens
 
Is there any way I can choose which worksheet opens when I open a specific
workbook? I know it will open to the last sheet saved, but neither I nor
anyone else who uses my workbook can ever remember to return to (for example)
worksheet 1, before saving and closing. Can I not automatically set the
worbook to open to worksheet 1 whenever I open it?

Dave Peterson

Choosing which sheet opens
 
You can use a macro:

Option Explicit
sub Auto_Open()
Application.goto thisworkbook.worksheets("sheet99").range("a1"), scroll:=true
end sub

Change the sheetname to what you want.

If you're new to macros, you may want to read David McRitchie's intro at:
http://www.mvps.org/dmcritchie/excel/getstarted.htm



josephdmcc wrote:

Is there any way I can choose which worksheet opens when I open a specific
workbook? I know it will open to the last sheet saved, but neither I nor
anyone else who uses my workbook can ever remember to return to (for example)
worksheet 1, before saving and closing. Can I not automatically set the
worbook to open to worksheet 1 whenever I open it?


--

Dave Peterson


All times are GMT +1. The time now is 04:14 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com