Use VBA to access Printer Properties (Resolution, Tray etc)

  • Thread starter Thread starter Alan
  • Start date Start date
A

Alan

Hi All,

Is there any way to use VBA to access the printer properties dialogue
box?

I am talking about the options that are specific to the selected
printer, such as which tray to print to, what resolution to print at
etc.

I know I could use SendKeys, but that seems a little clunky and
potentially uncertain.

Is there another way that I am missing?

Thanks,

Alan.
 
Hi Alan,

Hes it is possible but very complicated. You can use API function to access
such properies but ....

Regards

Jean-Yves
 
To change options within the Print window - not sure how to do it with code.
Probably SendKeys is the only option.

To open the Print window:
Application.Dialogs(xlDialogPrint).Show
 
How about setting up another printer the way you want it (outside excel).

Then just change printers within your code.

(Not so nice if you have a bunch of people running the macro.)
 

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