这是我原来设置的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的方法,大家帮忙!