B
Brian Durham
I'm creating a Word doc with some VBA code. I'm getting all the content
correctly, but I need to apply some styles. The finished product could be
any number of the following chunks of text.
Section Label
Description: <some variable length text>
Notes: <some variable length text>
Version: <some variable length text>
Table with 2 columns and n rows
Section Label, Description, Notes and Version need to have the same style
applied. The text after the colons needs a different style. Can I apply
styles as I write these lines with Selection.TypeText? Or should I write all
the content and then rummage through the entire document object searching for
different pieces of text and apply the styles then? I've tried various
things with the Selection and Range objects with unexpected results.
Thanks,
Brian
correctly, but I need to apply some styles. The finished product could be
any number of the following chunks of text.
Section Label
Description: <some variable length text>
Notes: <some variable length text>
Version: <some variable length text>
Table with 2 columns and n rows
Section Label, Description, Notes and Version need to have the same style
applied. The text after the colons needs a different style. Can I apply
styles as I write these lines with Selection.TypeText? Or should I write all
the content and then rummage through the entire document object searching for
different pieces of text and apply the styles then? I've tried various
things with the Selection and Range objects with unexpected results.
Thanks,
Brian