Expand Minimize

Document.HeaderCenter Property (Visio)

Published: July 16, 2012

Contains the text string that appears in the center portion of a document's header. Read/write.

Version Added: Visio 2002

expression .HeaderCenter

expression A variable that represents a Document object.

Return Value

String

You can also set this value in the Center box under Header in the Header and Footer dialog box (click the File tab, click Print, click Print Preview, and then in the Preview group, click Header & Footer).

Both the string that HeaderCenter returns and the string to which you set it can contain escape codes that represent data. These escape codes can be concatenated with other text. For a list of valid escape codes you can use with the HeaderCenter property, see the FooterLeft property.

The following macro shows how to place the string containing "Document Title" into the center portion of the document's header.

 
Sub HeaderCenter_Example() 
  
    'Set header of current document.  
    ThisDocument.HeaderCenter = "Document Title"  
 
End Sub 

Community Additions

ADD
Show:
© 2014 Microsoft