none
Using Word template via VBA Documents.Add command opens all embedded documents in the template? RRS feed

  • Question

  • Using Word template via the VBA Documents.Add command (from Excel) opens all embedded documents in the template as well as "Document 1"? This does NOT happen if I open the template with the Word user interface. The line of code I use to open the document is below. How do I stop this command from opening all the embedded documents in the template?

    Set wrdDoc = wrdApp.Documents.Add(Template:=sTargetDrive & _

    "_Templates\MailPad.dotm", NewTemplate:=False, DocumentType:=wdNewBlankDocument, Visible:=False)



    phillfri

    Friday, July 13, 2018 8:14 PM