Compartir por


Propiedad HeaderFooter.IsHeader (Word)

True si el objeto HeaderFooter especificado es un encabezado. Boolean de solo lectura.

Sintaxis

expresión. IsHeader

expresión Expresión que devuelve un objeto 'HeaderFooter'.

Ejemplo

En este ejemplo se selecciona un pie de página y se agrega un número de página.

With ActiveDocument.ActiveWindow.ActivePane.View 
 .Type = wdPrintView 
 .SeekView = wdSeekCurrentPageHeader 
End With 
 
If Selection.HeaderFooter.IsHeader = True Then 
 ActiveDocument.ActiveWindow.ActivePane.View _ 
 .SeekView = wdSeekCurrentPageFooter 
End If 
 
Selection.HeaderFooter.PageNumbers.Add

Vea también

Objeto HeaderFooter

Soporte técnico y comentarios

¿Tiene preguntas o comentarios sobre VBA para Office o esta documentación? Vea Soporte técnico y comentarios sobre VBA para Office para obtener ayuda sobre las formas en las que puede recibir soporte técnico y enviar comentarios.