I just cant seem to figure this out and I am not sure why but is there any way to open a word document then cycle threw all the bookmarks. Change the bookmarks then print the document and close the document without saving the changes to the bookmarks?
I am trying it with the follwing code but get errors.
VB Code:
Dim oWord As New Word.Application Dim i As Integer oWord.Documents.Open App.Path & "\Name.doc" With oWord.ActiveDocument For i = 1 To .Bookmarks.Count Select Case .Bookmarks(i) Case "Name" .Bookmarks(i).Select Selection.Text = "Hello" case "..." ect.. End Select Next i End With oWord.Documents.Close


Reply With Quote

