views:

87

answers:

1

I need to read cell values from Excel document. Some documents contain vba scripts and formulas that can contain error. So during reading document occur such errors and excel show UI dialogs with question and error information. Without any reactions on these dialogs reading cannot continue.

How I can ignore these errors or close dialogs automatically?

A: 

Have you tried to disable alerts? Using Application.DisplayAlerts = false;. I'm not sure if that will disable those error dialogs but worth a try.

ho1