ShapeRange.AddToCatalogMergeArea method (Publisher)
Adds the specified shape or shapes to the publication page's catalog merge area.
expression A variable that represents a ShapeRange object.
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:
- Use the Insert method of the MailMergeDataField object to add a picture data field to a publication page's catalog merge area.
- Use the InsertMailMergeField method of the TextRange object to add a text data field to a text box.
Use the AddToCatalogMergeArea method to add a text box that contains text data fields to a catalog merge area.
The following example adds a rectangle to the catalog merge area on the first page of the specified publication. This example assumes that a catalog merge area has been added to the first page.
ThisDocument.Pages(1).Shapes.AddShape(1, 80, 75, 450, 125).AddToCatalogMergeArea
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.