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.