AddToCatalogMergeArea Method

Microsoft Publisher Visual Basic

Show All Show All

AddToCatalogMergeArea Method

Adds the specified shape or shapes to the publication page's catalog merge area.

expression.AddToCatalogMergeArea

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

Remarks

The catalog merge area is automatically resized to accommodate objects that are larger than the merge area, or that are positioned outside the catalog merge area when they are added.

The AddToCatalogMergeArea method does not apply to merge data fields:

Note that to add a text box that will contain text data fields to a catalog merge area, you use the AddToCatalogMergeArea method.

Example

The following example adds a rectangle to the catalog merge area on the first page of the specified publication. This example assumes a catalog merge area has been added to the first page.

    ThisDocument.Pages(1).Shapes.AddShape(1, 80, 75, 450, 125).AddToCatalogMergeArea