PC Review


Reply
Thread Tools Rate Thread

command line switch to open a specific worksheet?

 
 
Paul B
Guest
Posts: n/a
 
      4th Feb 2004
Is there a way to open a specific worksheet in a workbook using command
line switches?

I'm trying to create a menu selection in AutoCAD that will open an Excel
workbook to a specific worksheet inside of that workbook. Typing the
command "start" <CR> followed by "Excel /filename/" <CR> will open that
particular file, but how do I get it to open to a specific worksheet?

Thanks for any help,
Paul


 
Reply With Quote
 
 
 
 
Jim Rech
Guest
Posts: n/a
 
      4th Feb 2004
There's no command line switch that will activate a worksheet. You have to
do one of the following:

-Save the workbook with the desired sheet active. Excel will open it
active.

-Put a macro in the workbook to activate the sheet. This would go in the
Workbook_Open event handler in the ThisWorkbook module.

-If AutoCad supports automation write a routine that uses automation to
create an instance of Excel, open the workbook, and activate the worksheet.
You'll find a lot of information on automating Excel and Office apps here:

http://support.microsoft.com/default...60&Product=xlw

--
Jim Rech
Excel MVP


 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: Command line to open a specific worksheet Chip Pearson Microsoft Excel Worksheet Functions 0 1st Dec 2006 12:05 AM
Outlook needs a command-line switch to open to a defined view =?Utf-8?B?T3V0bG9vayBVc2VyIGluIEthYnVs?= Microsoft Outlook Discussion 0 12th Jun 2006 10:54 AM
Go to specific worksheet using command line switches Bill Titus Microsoft Excel Discussion 5 21st Dec 2004 05:22 PM
command line switch to open IE in specific language Carla Windows XP Internet Explorer 2 18th Feb 2004 06:10 PM
Command line switch to open file as read-only? Mrnobody Microsoft Excel Discussion 1 8th Oct 2003 11:24 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:56 PM.