Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 363
Default 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 ?


  #2   Report Post  
Posted to microsoft.public.excel.programming
JMB JMB is offline
external usenet poster
 
Posts: 2,062
Default 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 ?



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,494
Default 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 ?




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 363
Default 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 ?





Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Listbox to display ALL Available Printers to User on a Userfrom Corey Excel Programming 2 April 12th 07 02:24 PM
Printers Jason Zischke Excel Programming 4 December 1st 05 02:05 AM
Printers & LPT Tom Excel Programming 0 November 26th 03 05:39 PM
listbox.value not equal to listbox.list(listbox.listindex,0) ARB Excel Programming 0 October 22nd 03 12:46 AM
Enumerating Printers Michael D. Ober[_2_] Excel Programming 8 October 21st 03 01:25 PM


All times are GMT +1. The time now is 08:28 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"