ParagraphFormat.TabStops property (Word)

Returns or sets a TabStops collection that represents all the custom tab stops for the specified paragraphs. Read/write.

Syntax

expression. TabStops

expression A variable that represents a 'ParagraphFormat' object.

Remarks

For information about returning a single member of a collection, see Returning an object from a collection.

Example

This example adds a centered tab stop at 2 inches to all the paragraphs in the active document. The InchesToPoints method is used to convert inches to points.

With ActiveDocument.Paragraphs.TabStops 
 .Add Position:= InchesToPoints(2), Alignment:= wdAlignTabCenter 
End With

This example sets the tab stops for every paragraph in the document to match the tab stops in the first paragraph.

Set para1Tabs = ActiveDocument.Paragraphs(1).TabStops 
ActiveDocument.Paragraphs.TabStops = para1Tabs

See also

ParagraphFormat Object

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.