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