Capture Autonumber; write as text?

E

Ed

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
 
C

Chuck

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
 
E

Ed

That simple??!? Wow - I had this whole scenario rolling around in my mind!
Thank you Greg!

Ed
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top