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

PageBackground.Create Method (Publisher)

office 365 dev account|Last Updated: 8/24/2017
|
3 Contributors

Creates a new PageBackground object for the specified Page object.

Syntax

expression. Create

_expression_A variable that represents a PageBackground object.

Remarks

Use PageBackground.Exists to test if a page already has a background before trying to create a new one. Returns a "Permission denied' error if a background already exists.

Example

The following example tests for the existence of a background on the first page of the active document. If a background does not exist then one is created.

If ActiveDocument.Pages(1).Background.Exists = False Then 
 ActiveDocument.Pages(1).Background.Create 
End If
© 2018 Microsoft