Hello
I am assigning an array to word document table cell using vba code.
below is the code
Please assist waht is wrong here.
I am assigning an array to word document table cell using vba code.
below is the code
Code:
Dim getEducation() As String
p = 0
While Not rsGetEducInfo.EOF
p = p + 1
ReDim Preserve getEducation(p - 1)
getEducation(p - 1) = CStr(rsGetEducInfo.Fields("Education Degree").Value)
rsGetEducInfo.MoveNext
Wend
''' here is I assign an array to table cell and here it gives error in below line
wddoc.ActiveWindow.Selection.Tables(1).Cell(3, 2).Range.Text = getEducation()
Please assist waht is wrong here.