I have the following code running. However, the array Segments is not getting population when i run the assignment line below.
Dim CurrentSegment As Variant
ReDim Segments(0) As Variant
MsgBox CurrentSegment
Segments(UBound(Segments)) = CurrentSegments
MsgBox (Segments(UBound(Segments)))
The result of the first MsgBox is a number, 8700000, but the result of the second msgbox is an empty set. Any ideas why array element will not take on the value of CurrentSegments? Any help would be greatly appreciated.
Dim CurrentSegment As Variant
ReDim Segments(0) As Variant
MsgBox CurrentSegment
Segments(UBound(Segments)) = CurrentSegments
MsgBox (Segments(UBound(Segments)))
The result of the first MsgBox is a number, 8700000, but the result of the second msgbox is an empty set. Any ideas why array element will not take on the value of CurrentSegments? Any help would be greatly appreciated.