PC Review


Reply
Thread Tools Rate Thread

How can i read Command Line parametres from Excel 2003 file???

 
 
=?Utf-8?B?Um9kcmlnbw==?=
Guest
Posts: n/a
 
      7th Jun 2007
Hi guys:

I need a tips related to run the following shorcut:

c:\MyBook.xls parameter1 parameter2..

in order to use those parameters in a Query that already exists in the excel
file "Mybook.xls"

Thanks & Regards
Rodrigo



 
Reply With Quote
 
 
 
 
NickHK
Guest
Posts: n/a
 
      8th Jun 2007
Rodrigo,
You can't pass parameters, as a command line, to an xls file as it is not an
executable.
You open the WB and set the relevant cell values with automation.

NickHK

"Rodrigo" <(E-Mail Removed)> wrote in message
news:24D893E7-1A08-4748-9A29-(E-Mail Removed)...
> Hi guys:
>
> I need a tips related to run the following shorcut:
>
> c:\MyBook.xls parameter1 parameter2..
>
> in order to use those parameters in a Query that already exists in the

excel
> file "Mybook.xls"
>
> Thanks & Regards
> Rodrigo
>
>
>



 
Reply With Quote
 
Steve Yandl
Guest
Posts: n/a
 
      8th Jun 2007
You could use an indirect method where you launch a vbs file that takes
arguments and also launches your xls file. Script within the vbs file can
be written to either run a macro within your xls file or populate certain
cells with the values given by the arguments. The "Wscript.Shell" opject
has an arguments collection.

Steve Yandl


"Rodrigo" <(E-Mail Removed)> wrote in message
news:24D893E7-1A08-4748-9A29-(E-Mail Removed)...
> Hi guys:
>
> I need a tips related to run the following shorcut:
>
> c:\MyBook.xls parameter1 parameter2..
>
> in order to use those parameters in a Query that already exists in the
> excel
> file "Mybook.xls"
>
> Thanks & Regards
> Rodrigo
>
>
>



 
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
What command line can I use to open an mde file (Access 2003) kemp Microsoft Access 1 17th Nov 2008 02:45 PM
Print an excel file from command line or "cron" type command ??? Chris Salcedo Microsoft Excel Programming 2 28th Mar 2007 01:10 AM
Print excel file from DOS command line despistado Microsoft Excel Misc 1 11th Nov 2004 11:41 PM
call excel 2003 macro from command line Keven Microsoft Excel Programming 1 2nd Jun 2004 05:33 AM
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 06:13 PM.