Word VBA textcolumns....

Hi,

Now I am able to add columns. But if I add textcolumns that is getting applied to the title also. And so the title is going to the first column. But my document format should be like this....

                                                  TITLE
                                                SUB TITLE

Feature One                                                                 Feature Three
    .Bullet One                                                                     .Bullet One
    .Bullet Two                                                                    .Bullet Two
    .Bullet Three                                                                  .Bullet Three

Feature Two                                                                Feature Four
    .Bullet One                                                                     .Bullet One
    .Bullet Two                                                                     .Bullet Two
    .Bullet Three                                                                  .Bullet Three


The column format should get apply only to the features and not to the title.
In a word document if I select only the features and say format>column it is spliting without affecting titles.
I am not able to do the same using VB code.
Hope I am clear.
amiteshsinhaAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

GrahamSkanRetiredCommented:
This will create two columns for all the document, except for the first two paragraphs.

Sub TwoColumnsBut2()
Dim rng As Range
Set rng = ActiveDocument.Range
rng.Collapse wdCollapseStart
rng.Expand wdParagraph
rng.Collapse wdCollapseEnd
rng.Expand wdParagraph
rng.Collapse wdCollapseEnd
rng.InsertBreak wdSectionBreakContinuous
    With ActiveDocument.Sections(2).PageSetup.TextColumns
        .SetCount NumColumns:=2
        .EvenlySpaced = True
        .LineBetween = False
        .Width = CentimetersToPoints(6.7)
        .Spacing = CentimetersToPoints(1.25)
    End With
End Sub
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Word

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.