W
ward
Hello,
I'm trying to detect if a paragraph is preceded by a
(manual inserted) page break.
I use the .pagebreakbefore property, but it doesn't seem
to work.
If I run the following code in a new document with a few
page breaks and some text, the output for all paragraphs
is "0"
Sub test()
Dim p As Paragraph
For Each p In ActiveDocument.Paragraphs
Debug.Print p.PageBreakBefore
Next
End Sub
Anybody knows how i can detect a page break preceding a
paragraph?
thanks
Ward
I'm trying to detect if a paragraph is preceded by a
(manual inserted) page break.
I use the .pagebreakbefore property, but it doesn't seem
to work.
If I run the following code in a new document with a few
page breaks and some text, the output for all paragraphs
is "0"
Sub test()
Dim p As Paragraph
For Each p In ActiveDocument.Paragraphs
Debug.Print p.PageBreakBefore
Next
End Sub
Anybody knows how i can detect a page break preceding a
paragraph?
thanks
Ward