Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Ignore excel vba errors during read cell values from C# through COM interop

I am running VBA macros from C# which can yield errors. These errors are characterized by a pop-up prompting for debugging, interrupting the application and requiring user input. I need these macros and they cannot be disabled.

How I can ignore these errors or close dialogs automatically?

like image 232
Ronin8881 Avatar asked Aug 09 '10 06:08

Ronin8881


1 Answers

Ör in the most simplest easiest way. Include on error resume next in your macros,so that the macro wont stop at errors.

like image 65
Vignesh Shankar Avatar answered Oct 13 '22 11:10

Vignesh Shankar