TextRange.MajorityParagraphFormat property (Publisher)
Returns a ParagraphFormat object that represents the paragraph formatting applied to most of the paragraphs in a text range.
expression A variable that represents a TextRange object.
This example applies the paragraph formatting applied to a majority of the paragraphs in the first shape to the paragraphs in the second shape on the first page of the active document. This example assumes that there are at least two shapes on page one of the active publication.
Sub SetFontName() Dim fmt As ParagraphFormat With ActiveDocument.Pages(1) Set fmt = .Shapes(1).TextFrame.TextRange _ .MajorityParagraphFormat .Shapes(2).TextFrame.TextRange.ParagraphFormat = fmt 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.