RE: Capture Autonumber; write as text? by Chuck
Chuck
Tue Feb 22 14:13:03 CST 2005
A quick and dirty way to change a paragraph from autonumbering to manual
numbering is to cut the paragraph and then paste it back using paste
unformatted, which will give you the paragraph number as text --
unfortunately it also removes any other formatting such as bold, underline,
etc. If that doesn't matter to you then paste unformatted should do the
trick. You can do that with code or manually.
Since paste unformatted returns an unformatted string with the paragraph
number, perhaps you could:
1. select the paragraph,
2. assign it to a string variable,
3. grab the first x number of characters (up to the first Tab or para num
delimiting character such as "." or "-"),
4. change the style of the par to a non-auto numbered style with a hanging
indent
5. insert the number as text at the beginning of the hanging paragraph?
HTH
Chuck
"Ed" wrote:
> I was given a document to use as a report "boiler plate". The doc, though,
> is full of Autonumbered paragraphs and headers - all of which are going to
> change when I rewrite this report.
>
> Can a macro go through the doc and capture the text of any and all
> automatically numbered paragraphs, delete the automatically generated
> number, and replace it with the plain text of the number that was deleted?
>
> Ed
>
>
>