If you've tried to change the printer in Excel VBA, no doubt you've realised that it needs the printer port in order to work, this looks something like "NE01:". As this changes from computer to computer it can't be hard coded.
Here's a solution that will get the printer port without looping over all possible versions until one works.
Below is an example for calling it:![]()
Please Login or Register to view this content.
Hope this helps someone![]()
Please Login or Register to view this content.
![]()
Bookmarks