|
-
Jul 2nd, 2016, 04:38 PM
#1
Thread Starter
New Member
[RESOLVED] closing files when error 5981 occrs
I have word vb code which navigates a directory structure and opens all word files in read only mode for text string content checking. Occasionally a word document fails to open and reports error code 5981. I wish to close the file and continue the run but activedocument.close and documents(myfilename).close have no effect and all such files remain open and have to be closed manually at end of run. Immediately after opening the active document is shown as <Cannot open macro storage.> in the Documents collection.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|