ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   starting an external program with a command line (https://www.excelbanter.com/excel-programming/276170-re-starting-external-program-command-line.html)

Jonathan[_5_]

starting an external program with a command line
 
Do you mean VBA help or the program's help? If the latter
it was of no use.
-----Original Message-----
Look in the help at SendKeys

--
Regards,
Tom Ogilvy

"Jonathan" wrote in message
...
have a command line to start a program as follows...

Program = "C:\Program Files\Program\program.exe"

but want it to send an initial command initially. its
not a file that would execute the program (i.e.,

file.doc
for say ms word) but a command you would enter in the
command line box of the program

once open i would type the comand inp filename

have tried

Program = "C:\Program Files\Program\program.exe inp
filename" but does not work.

any way to do a seperate line for the command

i.e., Program = "C:\Program Files\Program\program.exe"
and then a seperate line "inp filename" or something
like that?



.



All times are GMT +1. The time now is 11:12 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com