Share via


ScratchArea Property.ScratchArea Property

Publisher Developer ReferencePublisher Developer Reference

Returns a ScratchArea object for an a given document.

Syntax

expression.ScratchArea

expression   A variable that represents a ScratchArea Property object.

Return Value
ScratchArea

Remarks

The ScratchArea object is a collection of objects on the scratch page. The ScratchArea object is not in the Pages collection because it is fundamentally not a page; its only similarity to a page is that it can contain objects.

Example

This example sets the variable object as the first shape on the scratch area of the active document.

Visual Basic for Applications
  Sub ScratchPad()
Dim saPage As ScratchArea
Dim objFirst As Object

saPage = Application.ActiveDocument.<strong>ScratchArea</strong>
objFirst = saPage.Shapes(1)

End Sub

See Also