如何在c ++中读取所有excel公式,除了在某个命名范围下的少数公式 [英] How to read ALL excel formulas in c++ except few formulas under certain named range
问题描述
如何使用c ++阅读excel中的所有公式?最好的办法是什么,而不是阅读所有细胞。我只想读取所有包含公式而不是其他单元格的单元格。
How to read ALL the formulas in excel using c++? What is the best way to do that instead of reading all the cells. I just want to read all the cells which contains formulas only and not other cells.
此外,我还想忽略公式单元格,它以一些命名的范围文本开头。如何忽略这些公式?
Also I would like to ignore formula cells which starts with some named range text. How to ignore such formulas?
谢谢
Pervez
推荐答案
我知道excel VBA非常好用VBA定位公式的唯一方法就是使用特殊单元使用xlcelltype = xlCellTypeFormulas的方法。 我检查了MSDN,看看Net Library是否支持这种方法,并且确实如此。 我只是不明白
为什么MSDN网站会说以下内容:
I know excel VBA very well an in VBA the only way of locating formulas is to use the specialcells method with xlcelltype = xlCellTypeFormulas. I checked to see at MSDN if the Net Library supports this method and it does. I just don't understand why MSDN website says the following :
这篇关于如何在c ++中读取所有excel公式,除了在某个命名范围下的少数公式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!