-
LinkToPrevious
Hello,
I read in the help that HeaderFooter.LinkToPrevious is supposed to be a read/write boolean. In other words, I should be able to use this to check whether a header is linked or not to the previous one, right?
I work in a Word document and move from section to section. In every section, I need to check the state of the header (when it exists). That's where I use the lines
Dim i, SectionCount as integer
SectionCount = ActiveDocument.Sections.Count
For i = 1 to SectionCount
Selection.GoTo What:=wdGoToSection, Which:=wdGoToAbsolute, Count:=i
ActiveWindow.ActivePane.View.SeekView = wdSeekCurrentPageHeader
If Selection.HeaderFooter.LinkToPrevious = False Then
'Do something
end if
next i
Now, the "if" line seems to give more or less random results. So I am wondering if this property should be used only with the Headers property, but I fear it would be more difficult to do the same.
Any thought?
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules