I'm running an Excel macro that switches between two printers, one named "RecOffice_Pink", the other named "RecOffice_White".
This is a hacky workaround to the problem of VBA not having a way to easily specify a tray to print from. The Pink printer has all but one tray disabled, which contains our pink paper.
I am using
CreateObject(WScript.Network).SetDefaultPrinter "RecOffice_Pink"
and
CreateObject(WScript.Network).SetDefaultPrinter "RecOffice_White"
This works beautifully on our Windows 7 computers, however it doesn't seem to work on any of our Windows 10 PCs.
There are no errors thrown, no messages created, it just doesn't seem to be switching the printer.
I have tried setting them up as Shared printers on our network, setting them up per computer, both of which work well on Windows 7.