ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   How do I initiate the windows printer select object in Excel macro (https://www.excelbanter.com/excel-programming/320757-how-do-i-initiate-windows-printer-select-object-excel-macro.html)

Mick B[_2_]

How do I initiate the windows printer select object in Excel macro
 
I have a form that was created in Excel that as a control number on it. I
have placed a button on the worksheet which asks how many copies. It
increments the control number by one, prints and then repeats until all have
been printed. The printout method simply uses the default or selected
printed. I need to know how to bring up the standad windows printer
selection object so I can select the printer (the same object that comes up
when you press ctrl-P.

Bob Phillips[_7_]

How do I initiate the windows printer select object in Excel macro
 
Mick,

Use

application.Dialogs(xlDialogPrint).Show ,,,myNumCopies

and substitute myNumCopies with your variable

--
HTH

-------

Bob Phillips
"Mick B" <Mick wrote in message
...
I have a form that was created in Excel that as a control number on it. I
have placed a button on the worksheet which asks how many copies. It
increments the control number by one, prints and then repeats until all

have
been printed. The printout method simply uses the default or selected
printed. I need to know how to bring up the standad windows printer
selection object so I can select the printer (the same object that comes

up
when you press ctrl-P.





All times are GMT +1. The time now is 06:18 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com