command line options/switches to print excel file

  • Thread starter Thread starter Stranger
  • Start date Start date
S

Stranger

I need command line options/switches to print the excel file on
printer. Like

C:\> excel.exe C:\abc.xls /print

or

C:\> excel.exe -print C:\abc.xls

I'm able to print DOC, PPT file but I could not do it. Can anyone tell
me any command.

for Doc file it is

C:\Program Files\Microsoft Office\Office\WINWORD.EXE"
testdocfile.doc /
q /n /mFilePrintDefault /mFileExit

Can anyone tell me a similar command for excel too.

Thanks in advance
 
I don't see an option when I search excel for "startup switches".

I guess you could use a .vbs file that opens excel and then opens a workbook
that contains a macro that would print the file that was passed from the .vbs
file.
 
Back
Top