Forum Discussion
schea061
Apr 22, 2023Copper Contributor
Printing on a network printer
I am trying to create a code for printing on clicking a button on excel to print on the following network printer but i am not managing - \\P305762\IDUDOTLP2824 I seem to only be able to set .cur...
schea061
Apr 22, 2023Copper Contributor
HansVogelaar
Apr 22, 2023MVP
Try the following:
- Select \\P305762\IDUDOTLP2824 as printer in the Printer dialog (you don't have to actually print anything).
- Activate the Visual Basic Editor.
- Activate the Immediate window (Ctrl+G).
- Type ? Application.ActivePrinter and press Enter.
- You'll probably see something like \\P305762\IDUDOTLP2824 on Ne01: (the last part may vary).
- Copy the entire result, and paste that into your code.