first of all if you create an array like you do
you create an array of 3 strings: arry(0), arry(1), arry(2) and arry(3)VB Code:
dim Arry() as string redim arry(3)
if you want to create an arry wit only indexes 1 to 3
use this redim arry(1 to 3) or do it your way but add on on top of your module:
to copy an array just try this:VB Code:
option base 1
it works like a charm:VB Code:
NewArry = Arry
So:
VB Code:
Dim Arry() As String ReDim Arry(3) Arry(1) = "Jim" Arry(2) = "Bob" Arry(3) = "Harry" Dim NewArry() As String ReDim NewArry(UBound(Arry)) NewArry = Arry




Reply With Quote