Earlier versions of Excel and Word were not having this problem.
I'm getting this error: Run-time error 5981 Method 'Add' of object 'Documents' failed.
The error message pops up on the Set wdDoc... line. This worked fine in 2013 and earlier versions. It also works ok if I create a unique QuoteTemplate file for each different user that has 2016. However, I'd really prefer to have everyone use the same shared Word template.
Please help.
I'm getting this error: Run-time error 5981 Method 'Add' of object 'Documents' failed.
Code:
Set wdApp = CreateObject("Word.Application") 'Create an instance of word
Set wdDoc = wdApp.Documents.Add(QuoteDirectory & QuoteTemplate) 'Open word file
wdApp.Visible = True
The error message pops up on the Set wdDoc... line. This worked fine in 2013 and earlier versions. It also works ok if I create a unique QuoteTemplate file for each different user that has 2016. However, I'd really prefer to have everyone use the same shared Word template.
Please help.