Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 276
Default Available Printer names to be placed in a range on a sheet and Force selection based on part of Printer name

~~~~~~~~~~~~~~~~~~~~~
Sub Select_Printer()
'List of ALL available printers on the active PC
Dim bOK As String
bOK = Application.Dialogs(xlDialogPrinterSetup).Show
If bOK = False Then Exit Sub
If bOK = True Then
ActiveSheet.PrintOut
End If
End Sub
~~~~~~~~~~~~~~~~~~~~~
I use the above code to display what printer to be used on my PC, but i now
want to FORCE what Printer is selected.
However each user on the Network, does not have the SAME Printer Name as
mine.
I placed the Printer Name i use in a cell and refer to that when printing,
and it works fine.

Is there a way to modify the above code to place each Printer name in a
range in the activesheet starting at : Range("S3") and working down the
columns?
Also i need to FORCE the printer chosen, by Code finding the one with 'PDF'
in it's name.

Each user may have a different pdf Printer name like:

PDFFactory
PDFPrinter
PdfPrint

If i can come up with a code that will places the available printers in the
sheet starting at S3, then
Search the range for part of the printer name to include pdf or PDF and then
Ensure that Printer is Selected, that would be the ulitmate solution.



--
Corey ....
The Silliest Question is generally
the one i forgot to ask.


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
store default printer, change printer and then restore default printer? Dennis Pedersen Excel Programming 0 November 14th 07 09:18 PM
Printing to Local Printer and the not the default printer. [email protected] Excel Programming 1 September 13th 07 02:18 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
Printer Multiple Worksheets with a particular Printer Setting PP[_2_] Excel Worksheet Functions 0 March 14th 07 02:02 PM
Send printer escape commands to a printer using VBA mikeburg[_41_] Excel Programming 3 October 6th 05 07:36 PM


All times are GMT +1. The time now is 04:40 AM.

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

About Us

"It's about Microsoft Excel"