测试变量是否含有特殊的 Null 值。如果含有 Null 值,表示变量不含数据。
IsNull (Var)
布尔值
Var:要测试的任何变量。如果变量含有 NULL 值,此函数将返回 True,否则返回 False。
Null - 该值可用于无有效内容的变量数据子类型。
5 无效的过程调用
Sub ExampleIsNull
Dim vVar As Variant
msgbox IsNull(vVar)
end sub