开发者

finding Excel Error Cells in C#

I know there is a way to get the Error cells in VBA as below

Set rng = xlBook1.Sheets(s1).UsedRange.SpecialCells(xlCellTypeFormulas, xlErrors)

can any one provide me the way to do this in C#.

basical开发者_运维问答ly to get all the cells that is having errors in the formula like (#DIV/0!, #REF!) in a range


I got it...

rngTemp = (Excel.Range)wsCTAWK13.UsedRange.SpecialCells(Excel.XlCellType.xlCellTypeFormulas, Excel.XlSpecialCellsValue.xlErrors);

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜