MockY
Programmer
- Jul 7, 2006
- 94
When I want print to a specific printer from a Vba Excel macro, it typically wants the printer to be named and to reference the port.
Here is an example of what I have been using for the printer name:
Application.ActivePrinter = "Adobe PDF on Ne02:"
The problem is that sometimes the Ne02 changes depending upon the user or if the server is modified.
Is there anyway to reference an alias to this printer, or get to the printer using a name that would not change per user and during the year?
Here is an example of what I have been using for the printer name:
Application.ActivePrinter = "Adobe PDF on Ne02:"
The problem is that sometimes the Ne02 changes depending upon the user or if the server is modified.
Is there anyway to reference an alias to this printer, or get to the printer using a name that would not change per user and during the year?