NPOI如何使用indirect 函数

.Net技术 码拜 10年前 (2014-12-13) 1870次浏览 0个评论

这是我原来设置的Excel的有效性:
CellRangeAddressList regions = new CellRangeAddressList(1, 65535, 0, 0);
DVConstraint constraint = DVConstraint.CreateFormulaListConstraint(“dicRange”);
HSSFDataValidation dataValidate = new HSSFDataValidation(regions, constraint);
tb1.AddValidationData(dataValidate);
现在我需要把数据有效性改为:
= INDIRECT (IF(A1=””, “”, VLOOKUP(A1, input1, 2, FALSE)))

可是我没找到使用这个indirect的方法,大家帮忙!


CodeBye 版权所有丨如未注明 , 均为原创丨本网站采用BY-NC-SA协议进行授权 , 转载请注明NPOI如何使用indirect 函数
喜欢 (0)
[1034331897@qq.com]
分享 (0)

文章评论已关闭!