Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
greg
 
Posts: n/a
Default Question Startup Switches

I am using Excel 2000. Is there a way to startup a workbook with a startup
switch that not only starts a specific workbook: but, also starts it up at a
specific tab within the workbook ?
  #2   Report Post  
Dave Peterson
 
Posts: n/a
Default

Not through a startup switch.

But you could have a macro that selects the desired worksheet when you open the
workbook.

option explicit
sub auto_open()
worksheets("my startup sheet").select
end sub

(don't forget to change the worksheet name 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

greg wrote:

I am using Excel 2000. Is there a way to startup a workbook with a startup
switch that not only starts a specific workbook: but, also starts it up at a
specific tab within the workbook ?


--

Dave Peterson
  #3   Report Post  
Gord Dibben
 
Posts: n/a
Default

Greg

To open a specific workbook just point your shortcut to that workbook or see
"Startup switches" in Excel's help.

To open at a specific sheet you would need to save the workbook at that sheet
or activate that sheet upon opening the workbook.

Sub Workbook_Open
Sheets("MySheet").Activate
'if want a specific cell add
Range("G23").Select
End Sub

Copy/paste this code to the ThisWorkbook module.

With workbook open hit ALT + F11 to get to Visual Basic Editor. CRTL + r to
open Project Explorer.

Find your workbook/project and expand the MS Excel Objects.

Double-click on ThisWorkbook to open.

Paste the code in there.

ALT + Q to go back to Excel window.

Make sure the workbook Security is set to "Medium" under
ToolsOptionsSecurityMacro Security.

Save.

Gord Dibben Excel MVP

On Mon, 29 Nov 2004 13:37:02 -0800, "greg"
wrote:

I am using Excel 2000. Is there a way to startup a workbook with a startup
switch that not only starts a specific workbook: but, also starts it up at a
specific tab within the workbook ?


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
basic pie chart question KayR Charts and Charting in Excel 4 January 23rd 05 08:16 PM
Barchart 'GroupBy' Question [email protected] Charts and Charting in Excel 1 December 16th 04 10:47 PM
Jon Peltier - Pivot Table Result for yesterday's "Complex Chart" Question Barb Reinhardt Charts and Charting in Excel 3 December 8th 04 01:48 AM
Data Table Question SmokyMtnzz Charts and Charting in Excel 3 December 6th 04 05:48 PM
Area Chart Formatting Question Avrilon Charts and Charting in Excel 3 December 2nd 04 09:14 PM


All times are GMT +1. The time now is 11:06 AM.

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

About Us

"It's about Microsoft Excel"