VBA脚本中判断Variant变量是否为空的方法,一般有以下三种:
第一种:
if typeName( curVariant) <> “Nothing” then
…
end if
第二种:
if typeName( curVariant) <> “Empty” then
…
end if
第三种:
if Not curVariant is Nothing then
…
end if
本站所有内容均为原创,本站保留所有权利。在保留原始来源链接的情况下,允许非商业用途的转载。拒绝一切商业性转载。