Declare a 0-Length String Array in VBA - Impossible?
Is it really not possible to declare a 0-length array in VBA? If I try this: Dim lStringArr(-1) As String I get a compile error saying range has no values. If I try to trick the compiler and redim at runtime like this: ReDim lStringArr(-1) I get a subscript out of range error. I've varied the above around a bit but with no luck e.g. Dim lStringArr(0 To -1) As String Use Case I want to convert a variant array to a string array. The variant array may be empty as it comes from the Keys property of a dictionary. The keys property gives back an array of variants. I want an array of strings to use