How to programmatically manipulate Word VBA code not in a module?
Posted on 2010-01-06
I am looking to manipulate the Document_Open event code (via vba in Word). I would like to do this for a directory's entire contents of .docm files. I know how to do the same with VBA modules in a document (using MyDoc.VBProject.VBComponents().CodeModule, but cannot find how to grab the event code.