Advertisement
Guest User

Untitled

a guest
Jul 18th, 2019
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. For i = LBound(vArray) To UBound(vArray)
  2. On Error Resume Next
  3. strFile = CStr(vArray(i))
  4. Set myDoc = wdApp.Documents.Open(Filename:=strFile, ReadOnly:=True, AddToRecentFiles:=False, Visible:=False)
  5. .Cells(i, 1).Value = myDoc.txtNome.Text
  6. .Cells(i, 2).Value = myDoc.txtNis.Text
  7. .Cells(i, 3).Value = myDoc.txtCpf.Text
  8. .Cells(i, 4).Value = myDoc.txtEnd.Text
  9. .Cells(i, 5).Value = myDoc.txtCep.Text
  10. .Cells(i, 6).Value = myDoc.Combobox1.Value
  11. myDoc.Close SaveChanges:=False
  12. Next i
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement