TextFrame.ColumnSpacing property (Publisher)
Returns or sets a Variant that represents the amount of space between text columns. Read/write.
Syntax
expression.ColumnSpacing
expression A variable that represents a TextFrame object.
Return value
Variant
Remarks
Spacing measures from the end of the text to the end of the column and again from the beginning of the column to the beginning of the text.
Thus, if you enter a ColumnSpacing amount of 0.5 inch, the total spacing between columns is one inch: 0.5 inch measuring from the end of the text to the end of the column in one column, plus 0.5 inch measuring from the beginning of the column to the beginning of the text in a neighboring column.
Example
This example formats the first text box in the active publication with three columns and a total of 0.5 inch spacing between columns.
Sub SetColumnsAndSpacing()
With ActiveDocument.Pages(1).Shapes(1).TextFrame
.Columns = 3
.ColumnSpacing = InchesToPoints(0.25)
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.