Ok, im lost.
Im trying to insert a field with the fields.add but I cant get i to work.
Can someone show me how it should look?
at the moment im running this code, just to create the document and insert a
line of text.
----
Imports Word
Imports Microsoft.Office.Core
----
Dim oWordApp As Object
Dim oWordDoc As Object
oWordApp = CreateObject("Word.Application")
oWordApp.Documents.Add.SaveAs(FileName:="c:\test7. doc")
oWordDoc = CreateObject("Word.Document")
oWordDoc = oWordApp.ActiveDocument
oWordDoc.Range.InsertAfter("This is a Word Document Test!!!!")
oWordDoc.Save()
oWordDoc.Close()
oWordApp.Quit()
oWordApp = Nothing
oWordDoc = Nothing
Hope some can help me
Kim