Macro suddenly disappears from macro-enabled Word document

I have a macro-enabled Word document (.docm) which contained a macro that updated all fields upon saving the document. This worked for a while, but then suddenly the updates were no longer executed, and when I checked my code it was completely empty.
Is this a known problem? If so, what causes it, and what can I do about it?