Hello everyone,

I have used some VBA code to download numerous files from the web. I saved them all with the .pdf extension, even if some of them are not pdf files.

Then, in another piece of code I open the documents one by one and check if I can find a given word.

A problem appears when Acrobat tries to open a file which is not a pdf file. A window from Acrobat pops up with the usual error "....not a supported file format...." but I'm struglling to close the Acrobat app from VBA. I tried "App.Exit", "AVDoc.Close True" without any notable success.

All suggestions are appreciated!