J
JJaster
I need some help with form footers. I have a document that creates by
pulling in bookmarked text. I need to be able to automatically add a
formfooter to each page of each section. The footer need to stay the
same throughout the section and then change at the new section. I've
tried numerous ways to get this to work, but it always ends up changing
the footer throughout the document or combining the footers whenever I
try to add a new footer (regardless if I turn the 'link to previous'
off or not). Following is a sample of my code. In this sample I tried
to go to the next section before adding the footer, but I have the same
problem as when I view next formfooter
(ActiveWindow.ActivePane.View.NextHeaderFooter). Can someone please
let me know what I'm doing wrong or if there is a better way to do
this? Any help is greatly appreciated! I'm working in Word 97.
Judy
ActiveWindow.ActivePane.View.SeekView = wdSeekCurrentPageHeader
If Selection.HeaderFooter.IsHeader = True Then
ActiveWindow.ActivePane.View.SeekView =
wdSeekCurrentPageFooter
End If
Selection.HeaderFooter.LinkToPrevious = Not Selection.HeaderFooter.
_
LinkToPrevious
Selection.TypeText Text:="DEF"
Selection.GoToNext what:=wdGoToSection
ActiveWindow.ActivePane.View.SeekView = wdSeekCurrentPageFooter
Selection.HeaderFooter.LinkToPrevious = Not Selection.HeaderFooter.
_
LinkToPrevious
Selection.TypeText Text:="SPEC"
pulling in bookmarked text. I need to be able to automatically add a
formfooter to each page of each section. The footer need to stay the
same throughout the section and then change at the new section. I've
tried numerous ways to get this to work, but it always ends up changing
the footer throughout the document or combining the footers whenever I
try to add a new footer (regardless if I turn the 'link to previous'
off or not). Following is a sample of my code. In this sample I tried
to go to the next section before adding the footer, but I have the same
problem as when I view next formfooter
(ActiveWindow.ActivePane.View.NextHeaderFooter). Can someone please
let me know what I'm doing wrong or if there is a better way to do
this? Any help is greatly appreciated! I'm working in Word 97.
Judy
ActiveWindow.ActivePane.View.SeekView = wdSeekCurrentPageHeader
If Selection.HeaderFooter.IsHeader = True Then
ActiveWindow.ActivePane.View.SeekView =
wdSeekCurrentPageFooter
End If
Selection.HeaderFooter.LinkToPrevious = Not Selection.HeaderFooter.
_
LinkToPrevious
Selection.TypeText Text:="DEF"
Selection.GoToNext what:=wdGoToSection
ActiveWindow.ActivePane.View.SeekView = wdSeekCurrentPageFooter
Selection.HeaderFooter.LinkToPrevious = Not Selection.HeaderFooter.
_
LinkToPrevious
Selection.TypeText Text:="SPEC"