IsEmptyArray
Leere Arrays
Leider gibt es keine eingebaute Funktion in Visual Basic for Applications um zu prüfen, ob ein Array im VBA leer ist. Folgende Funktion hilft hier:
Public Function IsEmptyArray(arr As Variant) As Boolean
On Error GoTo handler
Dim lb As Long
lb = LBound(arr)
IsEmptyArray = False
Exit Function
handler:
IsEmptyArray = True
End Function