Dim x As Long
Dim StringArrayValues() As String
Redim StringArrayValues(x) As String
If StringArrayValues(0) = "" Then
StringArrayValues(x) = doc.fieldname(0)
Else
x = x + 1
Redim Preserve StringArrayValues(x) As String
StringArrayValues(x) = doc.fieldname(0)
End If