Share via


View.NextHeaderFooter Method

If the selection is in a header, this method moves to the next header within the current section (for example, from an odd header to an even header) or to the first header in the following section. If the selection is in a footer, this method moves to the next footer.

Namespace:  Microsoft.Office.Interop.Word
Assembly:  Microsoft.Office.Interop.Word (in Microsoft.Office.Interop.Word.dll)

Syntax

'Declaration
Sub NextHeaderFooter
'Usage
Dim instance As View

instance.NextHeaderFooter()
void NextHeaderFooter()

Remarks

Note If the selection is in the last header or footer in the last section of the document, or if it's not in a header or footer at all, an error occurs.

See Also

Reference

View Interface

View Members

Microsoft.Office.Interop.Word Namespace