I would like test if my array is empty or not.
I tried to use the function IsEmpty(), but the function returns always False. And don't enter in the if condition.
My code below :
Sub Freeze()
Dim tab_freeze() as variant
If IsEmpty(tab_freeze) Then
ReDim tab_freeze(0)
Else
ReDim Preserve tab_freeze(UBound(tab_freeze) + 1)
tab_freeze(UBound(tab_freeze)) = "As you want here"
End If
End Sub
I would like function to know if my array tab_freeze is empty or not.
Or understand why IsEmpty(tab_freeze) returns False the first time.