Hi I have the following code that is run after prodcuing a dynamic
document.
After running this, the documment is left with the cursor in the header
. Is there a simple command I can add to just put the focus back into
the main document - anywhere will do!.
Thanks in advance.
hals_left
Sub addHeader(strText)
ActiveWindow.ActivePane.View.SeekView = wdSeekCurrentPageHeader
Selection.ParagraphFormat.Alignment = wdAlignParagraphLeft
Selection.TypeText Text:= strText & " Page: "
Selection.Fields.Add Range:=Selection.Range, Type:=wdFieldEmpty,
Text:= _
"PAGE \* Arabic ", PreserveFormatting:=True
Selection.TypeText Text:=" of "
Selection.Fields.Add Range:=Selection.Range, Type:=wdFieldEmpty,
Text:= _
"NUMPAGES \* Arabic ", PreserveFormatting:=True
End Sub
Graham Mayor - 25 Jan 2006 11:32 GMT
ActiveWindow.ActivePane.View.SeekView = wdSeekMainDocument

Signature
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP
My web site www.gmayor.com
Word MVP web site http://word.mvps.org
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
> Hi I have the following code that is run after prodcuing a dynamic
> document.
[quoted text clipped - 17 lines]
> "NUMPAGES \* Arabic ", PreserveFormatting:=True
> End Sub