command line options/switches to print excel file

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
 
D

Dave Peterson

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top