I am trying to process the list of word files in a user specified directory. For this I iterate through the list of documents and open each using the Word.Application & Word.Document objects.
Now sometimes the word file may be corrupted or might have macros. In this case when executing the
`Set wrdDoc = wrdApp.Document.Open(...)`
statement, the Microsoft Word application generates an error, and the
VB program CANNOT proceed until the user responds to the (error related) message box the word app displays. However i want to ignore these errors, skip these files and continue processing the rest of the documents. The key requirement is that no user intervention should be necessary.
Please help.