Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.setup
|
|||
|
|||
How do I set a worksheet to be the default at startup?
I have a workbook that has more than 50 worksheets. I would like the default
to open to the first worksheet when the file is opened, not the last one accessed when last saved. Is it possible to do easily? thanks, dan |
#2
Posted to microsoft.public.excel.setup
|
|||
|
|||
How do I set a worksheet to be the default at startup?
Put this in a general module:
Option Explict sub auto_Open() application.goto worksheets(1).range("a1"),scroll:=true 'or application.goto worksheets("MyFavoriteSheet").range("a1"),scroll:= true End sub If you're new to macros, you may want to read David McRitchie's intro at: http://www.mvps.org/dmcritchie/excel/getstarted.htm Dan Dobill wrote: I have a workbook that has more than 50 worksheets. I would like the default to open to the first worksheet when the file is opened, not the last one accessed when last saved. Is it possible to do easily? thanks, dan -- Dave Peterson |
#3
Posted to microsoft.public.excel.setup
|
|||
|
|||
How do I set a worksheet to be the default at startup?
Thanks, Dave! works beautifully...after I changed the spelling of Explicit...
dan "Dave Peterson" wrote: Put this in a general module: Option Explict sub auto_Open() application.goto worksheets(1).range("a1"),scroll:=true 'or application.goto worksheets("MyFavoriteSheet").range("a1"),scroll:= true End sub If you're new to macros, you may want to read David McRitchie's intro at: http://www.mvps.org/dmcritchie/excel/getstarted.htm Dan Dobill wrote: I have a workbook that has more than 50 worksheets. I would like the default to open to the first worksheet when the file is opened, not the last one accessed when last saved. Is it possible to do easily? thanks, dan -- Dave Peterson |
#4
Posted to microsoft.public.excel.setup
|
|||
|
|||
How do I set a worksheet to be the default at startup?
Oopsie.
Glad it worked for you (after the fix!). Dan Dobill wrote: Thanks, Dave! works beautifully...after I changed the spelling of Explicit... dan "Dave Peterson" wrote: Put this in a general module: Option Explict sub auto_Open() application.goto worksheets(1).range("a1"),scroll:=true 'or application.goto worksheets("MyFavoriteSheet").range("a1"),scroll:= true End sub If you're new to macros, you may want to read David McRitchie's intro at: http://www.mvps.org/dmcritchie/excel/getstarted.htm Dan Dobill wrote: I have a workbook that has more than 50 worksheets. I would like the default to open to the first worksheet when the file is opened, not the last one accessed when last saved. Is it possible to do easily? thanks, dan -- Dave Peterson -- Dave Peterson |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Conversion of Cell Contents into a Functional Worksheet name ? | Excel Worksheet Functions | |||
Macro to search for and display data in another worksheet | Excel Worksheet Functions | |||
Increase default size of worksheet | New Users to Excel | |||
Executing macro for all worksheet from a different worksheet | New Users to Excel | |||
Reference Data in Moved Worksheet | Setting up and Configuration of Excel |