Table of contents
TOC
Collapse the table of content
Expand the table of content

Document.FooterLeft Property (Visio)

office 365 dev account|Last Updated: 6/12/2017
|
1 Contributor

Gets or sets the text string that appears on the left side of a document's footer. Read/write.

Syntax

expression . FooterLeft

expression A variable that represents a Document object.

Return Value

String

Remarks

You can also set this value in the Left box under Footer 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 returned by FooterLeft and the string to which you set FooterLeft can contain escape codes that represent data. These escape codes can be concatenated with other text.

Following is a list of valid escape codes for document footers and headers.

** Escape code**** Description**
&;pPage number
&;t or &;TCurrent time
&;d (short version) or &;D (long version)Current date
&;&;Ampersand
&;eFile name extension
&;fFile name
&;f&;eFile name and extension
&;nPage name
&;PTotal printed pages

Example

The following macro shows how to place a string containing the current date into the left portion of a document's footer. After you run this macro, if the date is May 4, 2007, the left portion of the footer contains "The date is Thursday, May 4, 2007".


Sub FooterLeft_Example()  

    Dim strFooter as String 

    'Build the footer string.  
    strFooter = "The date is " &; "&;D"  

    'Set the footer of the current document.  
    ThisDocument.FooterLeft = strFooter  

End Sub
© 2017 Microsoft