Printing
Visual Basic
1
Posts
1
Posters
0
Views
1
Watching
-
Hi all, Friend asked me the following question, and since I do not know VB at all, i'll try it here. So, in a Excel macro, he wants to set the active printer as "\\NTS198\\PFK" which is our color printer. But the port used to install the printer differs from user to user, that is, name of the printer in Excel is sometimes "\\NTS198\\PFK auf Ne02" or "\\NTS198\\PFK auf Ne01". and using
Application.ActivePrinter()
will throw an error if the name of the printer is not correct. So my question is, how do I find the port on which the "\\NTS198\\PFK" printer is on, so that i can useApplication.ActivePrinter()
without error ? ~RaGE();