detecting #REF! from interop

db042188

New Member
Joined
Sep 29, 2011
Messages
2
Hi. I hope I'm allowed to post the same question in 2 forums. I'm getting no responses in the other.

We have a c# program that visits hundreds of thousands of cells in about 60 spreadsheets across approx 1600 tabs to discover formulas. The formulas assist in determining new files that need to be visited. Circular references are handled.

We believe that more than a few of the cells have invalid references. But we dont know how to detect that "state" going thru interop from c#.

One promising item I saw today was the iserror(formula) "macro". Can I invoke this macro from c# thru interop to determine at the very least that something is wrong with a particular formula I've encountered? If so, how?

Is there a more direct way to detect #REF! specifically thru interop from c#?
 

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.

Forum statistics

Threads
1,224,600
Messages
6,179,835
Members
452,947
Latest member
Gerry_F

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top