T
TryingVBA
Hello,
I'm trying to create a macro that will find all paragraphs formatted with
the Heading 2 style, then Underline from the start of the paragraph to the
first period.
As I have been trying to figure this out myself, I think I need to loop
through the paragraphs collection, use an if statement to find Heading 2 and
then use collapse.start to go to the beginning and then selection.extend to
find the period. Can anybody provide a sample of how this is done? Many
thanks.
I'm trying to create a macro that will find all paragraphs formatted with
the Heading 2 style, then Underline from the start of the paragraph to the
first period.
As I have been trying to figure this out myself, I think I need to loop
through the paragraphs collection, use an if statement to find Heading 2 and
then use collapse.start to go to the beginning and then selection.extend to
find the period. Can anybody provide a sample of how this is done? Many
thanks.