Second posting with an array issue

For…………

This gives me an array as such;

Recipients

[1][0] with names in all of them for the first time.

[2][0]

[3][0]

[4][0]

but when the I go back on the second time it overrides the array when I use this line-> (Redim Preserve recipients (1 To Ubound(SupervisorsName) +1 , recipientsCount) )

so I tought that if I use this line instead the array would be Redim to Redim Preserve recipients (1 To Ubound(SupervisorsName) + recipientsCountA , recipientsCount) SupervisorsName + the counter recipientsCountA … but I get a script out of range…

all I need to everytime it loops then the array needs to adjust and append the names to the array … NOT override them…

SupervisorsName = doc.GetItemValue(Supervisors (counter, 4))

Redim Preserve recipients (1 To Ubound(SupervisorsName) +1 , recipientsCount)

recipientsCountA = 1

For x = 0 To Ubound(SupervisorsName)

recipients(recipientsCountA, recipientsCount) = SupervisorsName(x)

recipientsCountA = recipientsCountA +1

Next x

Set memItem = doc.getfirstitem(Supervisors (counter, 5))

Forall n In SupervisorsName

Call memItem.appendtotextlist(n)

End Forall

Call memItem.appendtotextlist(" " + Today)

recipientsCount = (recipientsCount + 1)

sSendReminder = "Yes”

thanks

p.