I have the macro shown below in a Word 2010 document. I have enabled the macro and marked the document as "trusted". Now, I need to edit the document, but whenever I open the doc, it runs the macro. You will notice that the line 15 of the macro is 'docMain.Close wdDoNotSaveChanges', so it closes the main document and is therefore no longer avaiable in Word. I've googled all over and can't seem to find a way to open the document in edit mode without running the maco. Need help!
Private Sub Document_Open()
Public Sub DoMailMerge()
Dim docMain As Document
Set docMain = ThisDocument
.Destination = wdSendToNewDocument