G
Greg Maxey
Sub Frustration()
ActiveDocument.Bookmarks("Test").Select
"&^$%#*& view changes to Normal with Split window for header pane.
'The bookmark is selected.
'This bit gets the PrintView back but the selection is collapsed
If ActiveWindow.View.SplitSpecial <> wdPaneNone Then
ActiveWindow.Panes(2).Close
End If
ActiveWindow.ActivePane.View.Type = wdPrintView
ActiveWindow.ActivePane.View.SeekView = wdSeekCurrentPageHeader
'So I cobbled together this bit which is working. Question - Is there
'a way to "prevent" the view from changing when using the
..Bookmarks(index).Select
'method?
Dim myRng As Range
ActiveDocument.Bookmarks("Test").Select
Set myRng = Selection.Range
If ActiveWindow.View.SplitSpecial <> wdPaneNone Then
ActiveWindow.Panes(2).Close
End If
ActiveWindow.ActivePane.View.Type = wdPrintView
ActiveWindow.ActivePane.View.SeekView = wdSeekCurrentPageHeader
myRng.Select
End Sub
ActiveDocument.Bookmarks("Test").Select
"&^$%#*& view changes to Normal with Split window for header pane.
'The bookmark is selected.
'This bit gets the PrintView back but the selection is collapsed
If ActiveWindow.View.SplitSpecial <> wdPaneNone Then
ActiveWindow.Panes(2).Close
End If
ActiveWindow.ActivePane.View.Type = wdPrintView
ActiveWindow.ActivePane.View.SeekView = wdSeekCurrentPageHeader
'So I cobbled together this bit which is working. Question - Is there
'a way to "prevent" the view from changing when using the
..Bookmarks(index).Select
'method?
Dim myRng As Range
ActiveDocument.Bookmarks("Test").Select
Set myRng = Selection.Range
If ActiveWindow.View.SplitSpecial <> wdPaneNone Then
ActiveWindow.Panes(2).Close
End If
ActiveWindow.ActivePane.View.Type = wdPrintView
ActiveWindow.ActivePane.View.SeekView = wdSeekCurrentPageHeader
myRng.Select
End Sub