Nota
L'accesso a questa pagina richiede l'autorizzazione. È possibile provare ad accedere o modificare le directory.
L'accesso a questa pagina richiede l'autorizzazione. È possibile provare a modificare le directory.
True if the header and footer of the specified section will be visible. Read/write Boolean.
Syntax
expression.ShowHeaderFooterOnFirstPage
expression A variable that represents a Section object.
Return value
Boolean
Example
The following example adds a new section starting on the second page of the active document, adds header and footer text to the master page, and then sets the ShowHeaderFooterOnFirstPage property to True.
Dim objSection As Section
Set objSection = ActiveDocument.Sections.Add(StartPageIndex:=2)
With ActiveDocument.Pages(2).Master
.Header.TextRange.Text = "Page " & .PageNumber & " header."
.Footer.TextRange.Text = "Page " & .PageNumber & " footer."
End With
objSection.ShowHeaderFooterOnFirstPage = True
Support and feedback
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.