且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

我们可以在Excel自定义验证中使用UDF吗

更新时间:2023-12-04 23:08:34

我忘记了UDF-in-data验证限制.我认为该限制已在Excel 2010中删除.否则,AFAIK唯一的解决方法是将UDF包装在xlt中的已定义名称"中(在引用UDF的xlt中创建一个定义名称:NameValidate = MyUDF())

I had forgotten about the UDF-in-data validation restriction. I think that restriction has been removed in Excel 2010. Otherwise AFAIK the only way round it is to wrap the UDF in a Defined Name in the xlt (create a Defined Name in the xlt that references the UDF: NameValidate=MyUDF())