Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
HeaderLeft Property
Collapse the table of content
Expand the table of content

Document.HeaderLeft Property (Visio)

Gets or sets the text string that appears in the left portion of a document's header. Read/write.

Version Added: Visio 2002

expression .HeaderLeft

expression A variable that represents a Document object.

Return Value


You can also set this value in the Left 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 HeaderLeft 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 HeaderLeft property, see the FooterLeft property

The following macro shows how to place a string containing the current date into the left portion of a document's header. After you run this macro, if the date is October 1, 2009, the left portion of the header contains "The date is Thursday, October 1, 2009".

Sub HeaderLeft_Example() 
    Dim strHeader as String 
    'Build header string. 
    strHeader = "The date is " & "&D"  
    'Set header of the current document. 
    ThisDocument.HeaderLeft = strHeader  
End Sub 

© 2015 Microsoft