Z
zamdrist
Having troubles changing my Selection to a bookmark in a header. Here's
what I tried:
With objDocument
If .Bookmarks.Exists("Applicant1") = True Then
.ActiveWindow.View.Type = wdPrintView
.ActiveWindow.View.SeekView = wdSeekCurrentPageHeader
.ActiveWindow.ActivePane.Selection.GoTo wdGoToBookmark, , ,
"Applicant1"
.ActiveWindow.ActivePane.Selection.InsertAfter txtApplicant.Value
End If
End With
Although the bookmark exists, I still get an error that it does not,
presumably not in the 'view' it's looking for it in. I've stepped
though the code and watched the document's view change to show the
header, but once it tries to change the selection to the bookmark found
in the header, the header closes...and therefore it cannot find the
bookmark.
Ideas? Thoughts? Ridicule?
Thanks!
what I tried:
With objDocument
If .Bookmarks.Exists("Applicant1") = True Then
.ActiveWindow.View.Type = wdPrintView
.ActiveWindow.View.SeekView = wdSeekCurrentPageHeader
.ActiveWindow.ActivePane.Selection.GoTo wdGoToBookmark, , ,
"Applicant1"
.ActiveWindow.ActivePane.Selection.InsertAfter txtApplicant.Value
End If
End With
Although the bookmark exists, I still get an error that it does not,
presumably not in the 'view' it's looking for it in. I've stepped
though the code and watched the document's view change to show the
header, but once it tries to change the selection to the bookmark found
in the header, the header closes...and therefore it cannot find the
bookmark.
Ideas? Thoughts? Ridicule?
Thanks!