I'm trying to create a macro in microsoft word that can apply different number of page columns in different parts of the same page, guided by selected text.
When I do it manually, its possible because I can choose the Apply to: Selected text option, which does not appear in VBA
How can I have the "Apply to: Selected text " option set in VBA?
The recorded VBA macro has no Apply to: Selected text " option
Here is the recorded VBA macro code
Sub Macro1()
With Selection.PageSetup.TextColumns
.SetCount NumColumns:=2
.EvenlySpaced = True
.LineBetween = True
.Width = CentimetersToPoints(11.36)
.Spacing = CentimetersToPoints(1.27)
End With
End Sub