Función IsNull

Comprueba si una variante contiene el valor especial Null (nulo) indicando que la variable no contiene datos.

Returns True when an object variable is passed that does not refer to a valid object, such as a newly created object that has not yet been assigned or an object assigned to the Nothing literal.

Sintaxis:


IsNull (Var)

Valor de retorno:

Boolean

Parámetros:

Var: Cualquier variable que se desee comprobar. Esta función devuelve True si la Variant contiene el valor Null o False si contiene otro distinto.

Null: este valor se usa para un subtipo de datos de tipo variant sin contenido válido.

Códigos de error:

5 Llamada a procedimiento no válida

Ejemplo:


Sub ExampleIsNull
Dim vVar As Variant
    MsgBox IsNull(vVar)
End Sub

¡Necesitamos su ayuda!