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

Excel Printing.

Status
Not open for further replies.

kpetursson

Programmer
Jan 28, 2002
313
US
Is there a way to have VBA open the print dialog box, so the user may select the printer.

ActiveWindow.SelectedSheets.PrintOut Copies:=1, Preview:=True, Collate:=True

The printout method doesn't seem to have this feature. I know I can set the desired printer, but that assumes I know the name of the printer. I want the code to be usable on several machines with different prints, and their names are not know to me.

When this VBA code brings up the print preview window, the print... button just prints the file without bring up the expected print dialog.

Any help is greatly appriciated.


Kevin Petursson
 
I found an anwaser Thanks

Application.Dialogs(xlDialogPrint).Show

Thanks

Kevin Petursson
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top