Handle Word object hang ups.
I am processing a large amount of word documents. There will be some that hang due to corruption when calling, wdDoc = GetObject(wdFileName). Since word hangs the code hangs at that step. There is no error that the code can see, so on error resume next doesn't work. How can I skip that file, kill the WinWord process, and continue processing the rest of the documents?
Re: Handle Word object hang ups.
Use md5 algorithm to calculate hash of each file, store it separately, and skip the files that match the hash (corrupted files).
Re: Handle Word object hang ups.
The word documents don't become corrupt, they are stored with errors. There must be a way to timeout if the getObject call takes too long.