ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   command line options/switches to print excel file (https://www.excelbanter.com/excel-discussion-misc-queries/224518-command-line-options-switches-print-excel-file.html)

Stranger[_2_]

command line options/switches to print excel file
 
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

Dave Peterson

command line options/switches to print excel file
 
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.



Stranger wrote:

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


--

Dave Peterson


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

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