RightHeader Property

Applies To

PageSetup object.

Description

Returns or sets the right-aligned part of the header in sections of the specified binder that support headers or footers (or both) and that are included in the binder at the time the header is set. Read/write String.

Remarks

You can use special format codes in the header text.

See Also

CenterHeader property, HasBinderHeaderFooter property, LeftHeader property, SupportsBinderHeaderFooter property.

Example

This example prints the date and the time, in bold type, in the upper-right corner of each page in every section of Binder1.obd that support headers or footers (or both).

Set myBinder = GetObject("C:\Binder1.obd", "OfficeBinder.Binder")
With myBinder
For Each s In .Sections
    If s.SupportsBinderHeaderFooter Then
        .PageSetup.LeftHeader = "&B &D &T &B"
        s.HasBinderHeaderFooter = True
    End If
Next
.Close SaveChanges:=True
End With