LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Starting Excel from cmd pmpt, pass parameters

Is it possible to start Excel from a command prompt and
pass it parameters like a DOS/C;Delphi;etc program and
pass it parameters?

I've tried executing it from a cmd prompt like:

C:\.....\excel.exe a b c d

and it thinks a b c d are files.

In mainframe terms, I want to start it like:

// EXEC PGM=EXCEL,PARM='02042004, FULL'

or in a C program be able to read

ArgC, and ArgV

or in Delphi be able to get

ParamCt, ParamStr(0..ParamCt)

I'm actually I'm going to do a create task API call to
start Excel with "ONE" file that has several macros and a
workbook_open() to run the stuff.

But I need to be able to grab a sequential file and read
it, but it will have an "unknown" name so I can't hard
code it and I DON'T want to open it in ANOTHER workbook....

got any clues anyone??

Thanks
JGS
 
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
how do you pass the prove it test for Microsoft Excel? jerry New Users to Excel 4 April 7th 23 12:17 PM
Pass a time value from Excel to Outlook appointment splodgey Excel Discussion (Misc queries) 2 October 18th 07 11:17 AM
how to pass on different parameters to VBA Code? Ahmaq Excel Worksheet Functions 2 April 22nd 07 04:30 AM
How do I my find pass word in excel AlShepard Setting up and Configuration of Excel 0 February 6th 06 09:32 PM
Starting a userform upon starting the file Fritznel Excel Programming 1 July 28th 03 05:37 AM


All times are GMT +1. The time now is 06:09 PM.

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

About Us

"It's about Microsoft Excel"