Word 2010
Hi, in my VBA I'm opening a external word doc to get some text:
Set sourcedoc = Application.Documents.Open(sFile)
Once I get the text, I try to close this document:
oFFld("Text2").Result = sourcedoc.Range
sourcedoc.Close
I'm getting an error message "Runtime error 4198. Command failed". This seems to work pretty well in Word 2003. When I click on debug and continue to run it, the document closes without error. Seems like I'm trying to close it too fast or something. Any ideas?
Hi, in my VBA I'm opening a external word doc to get some text:
Set sourcedoc = Application.Documents.Open(sFile)
Once I get the text, I try to close this document:
oFFld("Text2").Result = sourcedoc.Range
sourcedoc.Close
I'm getting an error message "Runtime error 4198. Command failed". This seems to work pretty well in Word 2003. When I click on debug and continue to run it, the document closes without error. Seems like I'm trying to close it too fast or something. Any ideas?