ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   available printers in a listbox (https://www.excelbanter.com/excel-programming/394527-available-printers-listbox.html)

Corey

available printers in a listbox
 
Is there a simple way to have a form show all available printers in a listbox, and a user to simply
select one to print to it ?



JMB

available printers in a listbox
 
I believe I used
Application.Dialogs(xlDialogPrinterSetup).Show
in a previous project.



"Corey" wrote:

Is there a simple way to have a form show all available printers in a listbox, and a user to simply
select one to print to it ?




Gary Keramidas

available printers in a listbox
 
just use something like this, it's much easier

dim bOK as string

bOK = Application.Dialogs(xlDialogPrinterSetup).Show 'choose the printer
If bOK = False Then exit sub

--


Gary


"Corey" wrote in message
...
Is there a simple way to have a form show all available printers in a listbox,
and a user to simply
select one to print to it ?





Corey

available printers in a listbox
 
perfect thanks



"Gary Keramidas" <GKeramidasATmsn.com wrote in message
...
just use something like this, it's much easier

dim bOK as string

bOK = Application.Dialogs(xlDialogPrinterSetup).Show 'choose the printer
If bOK = False Then exit sub

--


Gary


"Corey" wrote in message
...
Is there a simple way to have a form show all available printers in a listbox,
and a user to simply
select one to print to it ?







All times are GMT +1. The time now is 11:57 PM.

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