Hi,
I have a problem. I have a macro in which a user selects a printer (there are 2) that is on the network. My code is as follows:
Application.ActivePrinter = "LX300 HALL on \Bacevedolx300 Hall"
But this code only works for windows 98 computers. When i recorded a macro on one of our windows 2000 computers, the code changes as follows:
Application.ActivePrinter = "\BACEVEDOLX300 HALL on Ne01:"
Is there a generic way to make this selection work for all operating systems? (by the way, the Ne01 i think depends on the order in which the printers are installed, so this may vary also.). These are the same printer but they are defined differently on different operating systems, I would really like to get the macro to work. Appreciate any help, thanks!
I have a problem. I have a macro in which a user selects a printer (there are 2) that is on the network. My code is as follows:
Application.ActivePrinter = "LX300 HALL on \Bacevedolx300 Hall"
But this code only works for windows 98 computers. When i recorded a macro on one of our windows 2000 computers, the code changes as follows:
Application.ActivePrinter = "\BACEVEDOLX300 HALL on Ne01:"
Is there a generic way to make this selection work for all operating systems? (by the way, the Ne01 i think depends on the order in which the printers are installed, so this may vary also.). These are the same printer but they are defined differently on different operating systems, I would really like to get the macro to work. Appreciate any help, thanks!