Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 260
Default Printer Dialog Box

Hey

Using code, how would you make the printer dialog box come
up?

Also without showing the dialog box, is it possible to
list all the available printers?

Thank you
Todd Huttenstine
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Printer Dialog Box

Your first question was already answered by Frank in response to your last
post.

Yes it is possible and there are several methods. This has been asked many
times - see

http://groups.google.com/advanced_group_search?hl=en

--
Regards,
Tom Ogilvy


"Todd Huttenstine" wrote in message
...
Hey

Using code, how would you make the printer dialog box come
up?

Also without showing the dialog box, is it possible to
list all the available printers?

Thank you
Todd Huttenstine



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default Printer Dialog Box

Hi Todd
as in your other post:
application.Dialogs(xlDialogPrint).Show


--
Regards
Frank Kabel
Frankfurt, Germany


Todd Huttenstine wrote:
Hey

Using code, how would you make the printer dialog box come
up?

Also without showing the dialog box, is it possible to
list all the available printers?

Thank you
Todd Huttenstine

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default Printer Dialog Box

Hi Tom
seems your link is truncated :-)
For the OP: Below a repost (I thinks it's from Tom and/or Jim Rech):
-----
http://support.microsoft.com/support.../q166/0/08.asp
ACC: Enumerating Local and Network Printers

Enumerating Windows' Available Ports
http://www.mvps.org/vbnet/code/enums/enumports.htm
=======================

This macro enumerates printers and their connections. Parsing it you
may be
able to construct the syntax ActivePrinter wants:

Sub a()
Set WshNetwork = CreateObject("WScript.Network")
Set oDrives = WshNetwork.EnumNetworkDrives
Set oPrinters = WshNetwork.EnumPrinterConnections
For i = 0 To oPrinters.Count - 1 Step 2
Debug.Print "Port " & oPrinters.Item(i) & " = " & _
oPrinters.Item(i + 1)
Next
End Sub




--
Regards
Frank Kabel
Frankfurt, Germany


Tom Ogilvy wrote:
Your first question was already answered by Frank in response to your
last post.

Yes it is possible and there are several methods. This has been
asked many times - see

http://groups.google.com/advanced_group_search?hl=en


"Todd Huttenstine" wrote in
message ...
Hey

Using code, how would you make the printer dialog box come
up?

Also without showing the dialog box, is it possible to
list all the available printers?

Thank you
Todd Huttenstine


  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Printer Dialog Box

Here's an example Todd,

http://groups.google.com/groups?thre...GP09.p hx.gbl

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"Todd Huttenstine" wrote in message
...
Hey

Using code, how would you make the printer dialog box come
up?

Also without showing the dialog box, is it possible to
list all the available printers?

Thank you
Todd Huttenstine





  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Printer Dialog Box

Frank,

I think Tom was suggesting that the OP should use Google, and simply gave
him the groups search.

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"Frank Kabel" wrote in message
...
Hi Tom
seems your link is truncated :-)
For the OP: Below a repost (I thinks it's from Tom and/or Jim Rech):
-----
http://support.microsoft.com/support.../q166/0/08.asp
ACC: Enumerating Local and Network Printers

Enumerating Windows' Available Ports
http://www.mvps.org/vbnet/code/enums/enumports.htm
=======================

This macro enumerates printers and their connections. Parsing it you
may be
able to construct the syntax ActivePrinter wants:

Sub a()
Set WshNetwork = CreateObject("WScript.Network")
Set oDrives = WshNetwork.EnumNetworkDrives
Set oPrinters = WshNetwork.EnumPrinterConnections
For i = 0 To oPrinters.Count - 1 Step 2
Debug.Print "Port " & oPrinters.Item(i) & " = " & _
oPrinters.Item(i + 1)
Next
End Sub




--
Regards
Frank Kabel
Frankfurt, Germany


Tom Ogilvy wrote:
Your first question was already answered by Frank in response to your
last post.

Yes it is possible and there are several methods. This has been
asked many times - see

http://groups.google.com/advanced_group_search?hl=en


"Todd Huttenstine" wrote in
message ...
Hey

Using code, how would you make the printer dialog box come
up?

Also without showing the dialog box, is it possible to
list all the available printers?

Thank you
Todd Huttenstine




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
Printer Rey Excel Discussion (Misc queries) 3 October 23rd 07 09:02 PM
members on my network printer not able to print to default printer smeheut Excel Discussion (Misc queries) 0 June 18th 07 06:42 PM
How to delete the "Insert Function Dialog Box" (dialog box only)? TBI''d biker Excel Worksheet Functions 2 April 7th 07 09:18 PM
Printer Multiple Worksheets with a particular Printer Setting PP[_2_] Excel Worksheet Functions 0 March 14th 07 02:02 PM
Dsiplay Printer dialog Dean Southgate Excel Programming 3 April 1st 04 07:41 PM


All times are GMT +1. The time now is 11:12 AM.

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"