Hi Jason,
I understand the plugin is a COMAddin.
From the scenario, it may be a race condition that the plugin is hoding the
reference to certian cell/range and writing data and the VSTO code is try
to hold and read the cell reference.
This would need investigate the concrete ComAddin source about how it is
implemented.
So far I think you may try to enbrace the code that will cause the problem
in the try/catch block to see if that will try to fix the problem.
e.g. When you click the Button of the VSTO project and the excel will
crash, then you may try to enbrace all the Button click event handler code
in the try/catch.
Also you may try to contact the Addin develop to see if there is a method
to disable the addin code to refresh the data in the Excel Sheet
temporarily.
Based on my research, we can not disable a ComAddin temporarily with VBA
code without restart the Excel application.
A possible workaround is that you may try to save the current workbook as
another workbook and then use the ADO/ADO.NET code to retrieve the Data in
the Excel file that is not current loaded by Excel process so the com addin
will not affect it.
311731 How To Query and Display Excel Data by Using ASP.NET, ADO.NET, and
Visual Basic .NET
http://support.microsoft.com/default.aspx?scid=kb;EN-US;311731
306572 How to query and display excel data by using ASP.NET, ADO.NET, and
Visual C# .NET
http://support.microsoft.com/default.aspx?scid=kb;EN-US;306572
316934 How To Use ADO.NET to Retrieve and Modify Records in an Excel
Workbook With Visual Basic .NET
http://support.microsoft.com/default.aspx?scid=kb;EN-US;316934
Best regards,
Peter Huang
Microsoft Online Community Support
==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.