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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Printer Dialog Box

Status
Not open for further replies.

vestax22

Programmer
Jun 18, 2003
139
CA
Hi, I know I'm asking a lot of questions but here is another one for you.

I have a macro inside my excel application that sets printer settings for a specific worksheet whan pressing on a botton. I select a range and then print it out but I want the user to be able to select a printer instead of sending to the default printer. Is there a way pop up the printer dialog box after setting the printer settings?

Thx in advance

 
Hi vetax22,

Ask as many questions as you want, that is what this forum is for.

Now to your question. Add this code to your application. It calls up the Print screen (same as File->Print...).

Code:
Sub PrinterDialog()
Application.Dialogs(xlDialogPrint).Show
End Sub

Hope this helps!



Peace! [peace]

Mike

Never say Never!!!
Nothing is impossible!!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top