I want to open a Word template from Access and then navigate to a bookmark. I can open the template just fine and I can use things like .TypeText Text:="This is a test", but it will not navigate to a bookmark. If I do a count bookmarks (X = ActiveDocument.Bookmarks.C
ount) if will return 0 even though if you go to the Word document that is opened by Access and open bookmarks it will show the bookmark I am trying to navigate to (and if I click it it will go to the bookmark just fine).
I have enabled macros in the template. I have also tried variants of the command line I use to .Goto what, but without making a difference. Also tried the MoveUp command to see if that would work and it did not.
Another strange thing is I can open a template document, but if I try to open an existing document using
docx" it will not open the document (just keeps the Word instance open)
Selection.GoTo What:=wdGoToBookmark, Name:="clientname"
appWord.Selection.MoveUp wdline, 6