Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- For i = LBound(vArray) To UBound(vArray)
- On Error Resume Next
- strFile = CStr(vArray(i))
- Set myDoc = wdApp.Documents.Open(Filename:=strFile, ReadOnly:=True, AddToRecentFiles:=False, Visible:=False)
- .Cells(i, 1).Value = myDoc.txtNome.Text
- .Cells(i, 2).Value = myDoc.txtNis.Text
- .Cells(i, 3).Value = myDoc.txtCpf.Text
- .Cells(i, 4).Value = myDoc.txtEnd.Text
- .Cells(i, 5).Value = myDoc.txtCep.Text
- .Cells(i, 6).Value = myDoc.Combobox1.Value
- myDoc.Close SaveChanges:=False
- Next i
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement