M
Michael Goerz
Hi,
is there a way to modify the text in a range but to keep the formatting?
Specifically, I want to write a macro to trim footnotes, i.e. to remove
leading and trailing whitespace. If I do Footnote.Range.Text =
Trim(Footnote.Range.Text), I get what I want, but I lose all formatting
(e.g. italics). Unfortunately, Trim doesn't work with the FormattedText
property. I don't seem to be able to find a way to trim the footnote and
keep italics or other formatting in place.
Any ideas?
Thanks,
Michael
is there a way to modify the text in a range but to keep the formatting?
Specifically, I want to write a macro to trim footnotes, i.e. to remove
leading and trailing whitespace. If I do Footnote.Range.Text =
Trim(Footnote.Range.Text), I get what I want, but I lose all formatting
(e.g. italics). Unfortunately, Trim doesn't work with the FormattedText
property. I don't seem to be able to find a way to trim the footnote and
keep italics or other formatting in place.
Any ideas?
Thanks,
Michael