CatalogMergeShapes.HorizontalRepeat property (Publisher)

Returns a Long that represents the number of times that the catalog merge area repeats across the target publication page when the catalog merge is executed. Read-only.

Syntax

expression.HorizontalRepeat

expression A variable that represents a CatalogMergeShapes object.

Return value

Long

Remarks

When the catalog merge is executed, the catalog merge area repeats once for each selected record in the specified data source.

The number of times that the catalog merge area repeats across the page is determined by the width of the area. Use the Width property of the Shape object to return or set the horizontal size of the catalog merge area.

The VerticalRepeat property represents the number of times that the catalog merge area repeats vertically down the target publication page.

Example

The following example returns the number of times that the catalog merge area repeats horizontally and vertically on the target publication page when the catalog merge is performed. This example assumes that the catalog merge area is the first shape on the first page of the specified publication.

Sub CatalogMergeDimensions() 
 
 With ThisDocument.Pages(1).Shapes(1) 
 Debug.Print .Width 
 Debug.Print .CatalogMergeItems.HorizontalRepeat 
 Debug.Print .Height 
 Debug.Print .CatalogMergeItems.VerticalRepeat 
 End With 
 
End Sub

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.