PageBackground.Create method (Publisher)
Creates a new PageBackground object for the specified Page object.
Syntax
expression.Create
expression A variable that represents a PageBackground object.
Remarks
Use the Exists property 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, one is created.
If ActiveDocument.Pages(1).Background.Exists = False Then
ActiveDocument.Pages(1).Background.Create
End If
Support and feedback
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.