This documentation is archived and is not being maintained.

ScratchArea Property.ScratchArea Property

Office 2007
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.ScratchArea
    objFirst = saPage.Shapes(1)

End Sub



Show: