Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Fow can I call File>Print from a VBA macro?

Status
Not open for further replies.

MCubitt

Programmer
Mar 14, 2002
1,081
GB
Having set up page setup detail, I'd like to emulate the File>Print action for the user, how can I do this, please?

thanks


Applications Support
UK
 
Hi
If you want your user to interact with the print dialog then you can use
Application.Dialogs(xlDialogPrint).Show

but if you just want to print without user interaction have a look at the PrintOut method.

Happy Friday

;-)
If a man says something and there are no women there to hear him, is he still wrong? [ponder]
How do I get the best answers?
 
I think I'll give them the interaction, so they can choose a printer and things.

Thanks for your help, it worked.



Applications Support
UK
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top