J
jerem
I have this code below which gets me into the Header rather than going
through the toolbar but the problem is once I get into the header, the header
toolbar Close button is deactivated, I can't get out of the header area and
the document locks up. This then generates an Out of Stack Space message
with this: "ActiveWindow.ActivePane.View.SeekView =
wdSeekCurrentPageHeader" line highlighted in yellow. Any one out there know
what's going on with this and how to solve this. Thanks in advance for your
help.
Sub ViewHeader()
'
' ViewHeader Macro
' Macro recorded 9/16/2008 by dwallace
'
If ActiveWindow.View.SplitSpecial <> wdPaneNone Then
ActiveWindow.Panes(2).Close
End If
If ActiveWindow.ActivePane.View.Type = wdNormalView Or ActiveWindow. _
ActivePane.View.Type = wdOutlineView Then
ActiveWindow.ActivePane.View.Type = wdPrintView
End If
ActiveWindow.ActivePane.View.SeekView = wdSeekCurrentPageHeader
End Sub
through the toolbar but the problem is once I get into the header, the header
toolbar Close button is deactivated, I can't get out of the header area and
the document locks up. This then generates an Out of Stack Space message
with this: "ActiveWindow.ActivePane.View.SeekView =
wdSeekCurrentPageHeader" line highlighted in yellow. Any one out there know
what's going on with this and how to solve this. Thanks in advance for your
help.
Sub ViewHeader()
'
' ViewHeader Macro
' Macro recorded 9/16/2008 by dwallace
'
If ActiveWindow.View.SplitSpecial <> wdPaneNone Then
ActiveWindow.Panes(2).Close
End If
If ActiveWindow.ActivePane.View.Type = wdNormalView Or ActiveWindow. _
ActivePane.View.Type = wdOutlineView Then
ActiveWindow.ActivePane.View.Type = wdPrintView
End If
ActiveWindow.ActivePane.View.SeekView = wdSeekCurrentPageHeader
End Sub