A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Setting up and Configuration
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

How do I set a worksheet to be the default at startup?



 
 
Thread Tools Display Modes
  #1  
Old December 21st, 2005, 07:00 PM posted to microsoft.public.excel.setup
external usenet poster
 
Posts: n/a
Default 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  
Old December 21st, 2005, 07:30 PM posted to microsoft.public.excel.setup
external usenet poster
 
Posts: n/a
Default 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  
Old December 22nd, 2005, 04:25 PM posted to microsoft.public.excel.setup
external usenet poster
 
Posts: n/a
Default 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  
Old December 22nd, 2005, 06:12 PM posted to microsoft.public.excel.setup
external usenet poster
 
Posts: n/a
Default 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
 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
One worksheet to calulate different items simultaneously John Worksheet Functions 4 November 28th, 2005 07:07 PM
How do I change the default startup font on Word? Ryancomputer2 New Users 2 November 19th, 2005 02:02 AM
GUID default value Vladimir Database Design 5 November 11th, 2005 01:08 PM
Reference Data in Moved Worksheet tommcbrny Setting up and Configuration 1 December 1st, 2004 06:49 PM
On opening a spreadsheet. Pinda Worksheet Functions 7 September 30th, 2003 09:36 PM


All times are GMT +1. The time now is 07:30 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.