We are merging data with a Word doc. Depending on certain conditions, we insert a secind doc and merge more data.
I have been using this this code to do this
Set objWord = GetObject(, "Word.Application")
Set oDoc = objWord.ActiveDocument
The application has been used for about 4-5 years without problems. Suddenly, we started getting this error 4208. Funny thing, though, if I close Outlook the code runs fine with no errors.
Anyone have any thoughts?
Update .... It looks like Word is the culprit. When I turn off Word as the editor in Oultook, the code runs fine. When I open Word before hand and run the code, I get an error.
I have been using this this code to do this
Set objWord = GetObject(, "Word.Application")
Set oDoc = objWord.ActiveDocument
The application has been used for about 4-5 years without problems. Suddenly, we started getting this error 4208. Funny thing, though, if I close Outlook the code runs fine with no errors.
Anyone have any thoughts?
Update .... It looks like Word is the culprit. When I turn off Word as the editor in Oultook, the code runs fine. When I open Word before hand and run the code, I get an error.
Last edited: