Share via


FooterLeft Property [Visio 2003 SDK Documentation]

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

strRet = object**.FooterLeft**

object**.FooterLeft** = stringExpression

strRet     String. The text in the left portion of the footer.

object     Required. An expression that returns a Document object.

stringExpression     Required String. New text for the left portion of the footer.

Version added

2002

Remarks

You can also set this value in the Left box under Footer in the Header and Footer dialog box (View menu).

Both strRet and strExpression 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

&p

Page number

&t or &T

Current time

&d (short version) or &D (long version)

Current date

&&

Ampersand

&e

File name extension

&f

File name

&f&e

File name and extension

&n

Page name

&P

Total 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, 2004, the left portion of the footer contains "The date is Thursday, May 4, 2004".

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

Applies to | Document object

See Also | FooterCenter property | FooterMargin property | FooterRight property | HeaderCenter property | HeaderFooterColor property | HeaderFooterFont property | HeaderLeft property | HeaderMargin property | HeaderRight property