Table of contents
Collapse the table of content
Expand the table of content

ShapeRange.RemoveFromCatalogMergeArea Method (Publisher)

office 365 dev account|Last Updated: 8/24/2017
3 Contributors

Removes a shape from the specified page's catalog merge area. Removed shapes are not deleted, but instead remain in place on the page containing the catalog merge area.


expression. RemoveFromCatalogMergeArea

_expression_A variable that represents a ShapeRange object.


Use the AddToCatalogMergeArea method of the Shape or ShapeRange objects to add shapes to a catalog merge area.

Use the RemoveCatalogMergeArea method of the Shape object to remove the catalog merge area from a publication page, but leave the shapes it contains.


The following example tests whether any page of the specified publication contains a catalog merge area. If any page does, all the shapes are removed from the catalog merge area and deleted, and the catalog merge area is then removed from the publication.

Sub DeleteCatalogMergeAreaAndAllShapesWithin() 
 Dim pgPage As Page 
 Dim mmLoop As Shape 
 Dim intCount As Integer 
 Dim strName As String 

 For Each pgPage In ThisDocument.Pages 
 For Each mmLoop In pgPage.Shapes 

 If mmLoop.Type = pbCatalogMergeArea Then 
 With mmLoop.CatalogMergeItems 
 For intCount = .Count To 1 Step -1 
 strName = mmLoop.CatalogMergeItems.Item(intCount).Name 
 End With 
 End If 

 Next mmLoop 
 Next pgPage 

End Sub
© 2018 Microsoft