TextColumns.SetCount method (Word)

Arranges text into the specified number of text columns.

Syntax

expression. SetCount( _NumColumns_ )

expression Required. A variable that represents a 'TextColumns' collection.

Parameters

Name Required/Optional Data type Description
NumColumns Required Long The number of columns the text is to be arranged into.

Remarks

You can also use the Add method to add a single column to the TextColumns collection.

Example

This example arranges the text in the active document into two columns of equal width.

ActiveDocument.PageSetup.TextColumns.SetCount NumColumns:=2

This example arranges the text in the first section of Brochure.doc into three columns of equal width.

Documents("Brochure.doc").Sections(1) _ 
 .PageSetup.TextColumns.SetCount NumColumns:=3

See also

TextColumns Collection 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.