Background Property

Microsoft Publisher Visual Basic

Background Property

Sets or returns a PageBackground object representing the background of the specified page.

expression.Background

expression    Required. An expression that returns a Page object.

Remarks

This proerty is for publication pages only. Any attempt to create a background for a master page will return a "Permission denied" error.

Example

The following example creates a PageBackground object and sets it to the background of the first page of the active document.

      Dim objPageBackground As PageBackground
Set objPageBackground = ActiveDocument.Pages(1).Background