Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I create a list of ACTIVE printers?

Status
Not open for further replies.

MushMouse

Programmer
Mar 29, 2004
65
0
0
US
I use a laptop & connect to different networks.
I have the following code to create a list of printers:

Dim prtLoop As Printer
Dim varItem As Variant
PrinterList.DefaultValue = ""
For Each prtLoop In Application.Printers
PrinterList.AddItem Item:=prtLoop.DeviceName
Next prtLoop

My problem is that any printer I have ever used on any network shows up. How can I limit it to just the printers that are currently available?

Much thanks in advance....
 
Have a table with "accepted" printers and then check the "incomming printers" against this table, if the printer is ok, add it else drop it.


Herman
Say no to macros
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top