I have a Word doc which has some paragraphs which start with a number followed by a period. Example "21. Text..."
If a numbered paragraph is found, I want to do some work with that paragraph - such as find certain words in that paragraph and upcase them.
How can I set up the loop thru the paragraphs and work with each paragraphs? I am trying:
N=ActiveDocument.Paragraphs.Count
For I = 1 to N
if Paragraphs(I) begins with "[0-9]{1,2,3}." then ?How??
Do some Finds here, restricted to this paragraph ?How?
end if
Next I
I think I have to set the range to each paragraph, but how?
Can I do a wildcard test for the beginning of the paragraph?
If a numbered paragraph is found, I want to do some work with that paragraph - such as find certain words in that paragraph and upcase them.
How can I set up the loop thru the paragraphs and work with each paragraphs? I am trying:
N=ActiveDocument.Paragraphs.Count
For I = 1 to N
if Paragraphs(I) begins with "[0-9]{1,2,3}." then ?How??
Do some Finds here, restricted to this paragraph ?How?
end if
Next I
I think I have to set the range to each paragraph, but how?
Can I do a wildcard test for the beginning of the paragraph?