Share via


ScratchArea Property [Publisher 2003 VBA Language Reference]

Returns a ScratchArea object for an a given document.

expression.ScratchArea

expression Required. An expression that returns one of the objects in the Applies To list.

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.

Sub ScratchPad()

    Dim saPage As ScratchArea
    Dim objFirst As Object

    saPage = Application.ActiveDocument.ScratchArea
    objFirst = saPage.Shapes(1)

End Sub

Applies to | Document Object