How to let the user select a printer and then print?

  • Thread starter Thread starter MBaas
  • Start date Start date
M

MBaas

Hi all,

I wrote a little program which fires up Excel through COM, opens an
XLT, fills it with data, prints it and closes Excel, all happening
automatically without any user-interaction. Now I was asked to add a
possibility to select a printer after Excel is started, so that all
printouts would go to that specific printer.
Is there a way to call a SelectPrinter (or whatever) method which would
enable me to do so?

Thanks

Michael
 
MBaas said:
Hi all,

I wrote a little program which fires up Excel through COM, opens an
XLT, fills it with data, prints it and closes Excel, all happening
automatically without any user-interaction. Now I was asked to add a
possibility to select a printer after Excel is started, so that all
printouts would go to that specific printer.
Is there a way to call a SelectPrinter (or whatever) method which would
enable me to do so?

Thanks

Michael
Try application.Dialogs(xlDialogPrinterSetup).Show

This should change the active printer to the one selected in the dialog.
 

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

Back
Top