In all my MS Word documents, after opening, when I close the document I get the message "sub or function not defined" error.

Geo.