See the attachments
copy te worddocument to your own location. you have to adapt the code to find it (see below)
Open the Excel Workbook
Select a cell in a certain row you want to be transpoerted en run the macro:
Before running the macro you have to change "E:\OF\" in the macro by the path wheree de Worddocument is located.
Sub snb()
sn = Cells(ActiveCell.Row, 1).Resize(, 11)
With GetObject("E:\OF\forumexample wendy.doc")
.variables("wordnum") = " "
.variables("hours") = " "
For j = 1 To UBound(sn, 2)
If j <> 10 Then .variables(Choose(j, "job", "shipper", "datecreated", "customer", "fanalyst", "count", "parttypes", "devnum", "lot", "", "datecomplete")) = IIf(sn(1, j) = "", " ", sn(1, j))
Next
.Activate
.fields.Update
.SaveAs "E:\OF\form 001.doc"
.Close
End With
End Sub
Bookmarks