Hi-
I have a string array of variable size (I redimension it on the fly). I need to be able to get a variant that is an array of the contents of the string array-
for example, say I had stringArray(0) to stringArray(2)
I need to be able to declare something like:
dim differentKindOfArray as Variant
differentKindOfArray = Array(stringArray(0), stringArray(1), stringArray(2))
I have to do it this way because the string arrays are parsed pieces of an SQL query I'm passing to an Excel pivottable. My problem is, I don't know how many elements there will be in the StringArray(), so I can't explicitly declare it like above, I need a way to do it dynamically.
Any help would be greatly appreciated!
Thank you!
I have a string array of variable size (I redimension it on the fly). I need to be able to get a variant that is an array of the contents of the string array-
for example, say I had stringArray(0) to stringArray(2)
I need to be able to declare something like:
dim differentKindOfArray as Variant
differentKindOfArray = Array(stringArray(0), stringArray(1), stringArray(2))
I have to do it this way because the string arrays are parsed pieces of an SQL query I'm passing to an Excel pivottable. My problem is, I don't know how many elements there will be in the StringArray(), so I can't explicitly declare it like above, I need a way to do it dynamically.
Any help would be greatly appreciated!
Thank you!