标签: c# .net excel vsto
假设我有公式= MyCustomFunction(D2),其中使用C#在Excel AddIn中写入MyCustomFunction
当我更改细胞D2时,我怎么能以明智的方式告诉我的公式重新运行?
答案 0 :(得分:1)
如果对性能的惩罚不是很大,即电子表格在很多计算中并不是很大,那么你能不能简单地在你的函数中设置Application.Volatile=True吗?
Application.Volatile=True