Question

Q: Run Time Error 5216 when using macro in Office 2010

Have migrated some macros after upgrading to Office 2010. The macro function is for identifying the active prnter (and if necessary changing it) before choosing the correct paper tray for printing. These worked fine previously but on some workstations I am seeing the above error.

Answer

A:

The macro error indicates a printer error. Presumably when you select ActivePrinter = "printername", the 'printername' you are selecting there does not exist. Check what you have is exactly what you see in the print dialog if you print manually from the workstation(s) when the problem arises. See http://word.mvps.org/FAQs/MacrosVBA/AvailablePrinters.htm and http://www.gmayor.com/fax_from_word.htm
Graham Mayor (Microsoft Word MVP)
For more Word tips and downloads visit my web site
http://www.gmayor.com/Word_pages.htm

Did this solve your problem?

Sorry this didn't help.



 
Question Info

Views: 5,331 Last updated: May 10, 2018 Applies to: