How do I fix the following problem? The code runs fine on my computer but when switching to another computer on the same network, mapped to the same printer it won't run through the macro without this error on their computer. However, you can go to file, print, and select this printer and it prints out without any problem to the printer specified in the code.
Runtime Error '1004':
Method 'ActivePrinter' of object '_Application' failed
Runtime Error '1004':
Method 'ActivePrinter' of object '_Application' failed
Code:
Application.ActivePrinter = "hp color LaserJet 4600 on Ne05:"
ActiveWindow.SelectedSheets.PrintOut Copies:=1, ActivePrinter:= _
"hp color LaserJet 4600 on Ne05:", Collate:=True