Directing the Printing using a Macro

G

Guest

Within a self-written VB userform, how do i get the print dialogue box to
open by using a macro attached to a button. The VB macro
[Sheets("sheet1").Printout] only prints to the default printer but won't let
you select a printer to output towards. I want the user to be able to choose
which printer to print to AFTERr pressing my macro print button (akin to
pressing file/print... instead of pressing the print button on the toolbar -
cos these will all be turned off and hidden other than my userform.)
 
B

Bob Phillips

application.Dialogs(xlDialogPrint).Show

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)
 
G

Guest

Excellent. Works perfectly. Thanks for you prompt reply.

....tinkmodbod



Bob Phillips said:
application.Dialogs(xlDialogPrint).Show

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

Tinkmodbod said:
Within a self-written VB userform, how do i get the print dialogue box to
open by using a macro attached to a button. The VB macro
[Sheets("sheet1").Printout] only prints to the default printer but won't let
you select a printer to output towards. I want the user to be able to choose
which printer to print to AFTERr pressing my macro print button (akin to
pressing file/print... instead of pressing the print button on the toolbar -
cos these will all be turned off and hidden other than my userform.)
 

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

Top