Quote:
Originally Posted by Sandy27
I also realised that I should be searching either for "cc" + Tab or, possibly, CR + "cc" + Tab. The nearest I have got is
...
which, bizarrely, changes every other "cc" + Tab to font size 9, but not the adjacent name and address (which is in a single line), but doesn't affect the rest of the letters, which remain at font size 12. I'd be grateful for any comments.
|
Your Find expression only looks for "cc" + Tab, without regard to what's before or after. Therefore, it will change just that combo wherever its found. With the code I posted, changing:
.Text = "^13cc [!^13]@^13"
to:
.Text = "^13cc[ ^t][!^13]@^13"
will act on all paragraphs starting with 'cc' followed by a tab or space. Similarly, deleting '.Start = .Start + 1' and the first ^13 will work on any "cc" + Tab/space, till the end of that paragraph.