Page 1 of 1

Convert List Numbers to Plain Text?

Posted: 2008-07-08 12:50:29
by Bob Stern
Is it possible to convert List numbers to plain text? I want to "freeze" the numbers so that the List style is removed and the current numbering remains fixed.

In particular, if the Start value of the first item in the list is greater than one, I need the correct Start value preserved when the numbers are converted from List style to plain text. Copying a list number to the clipboard and then pasting it as plain text causes the number to revert to 1.

Re: Convert List Numbers to Plain Text?

Posted: 2008-07-08 14:11:09
by martin
This is possible to do using a macro:

Code: Select all

# Move to end of document
Select All
Select End

# Convert all list bullets to plain text.
# Go backwards so numbering doesn't change as we progress.
While Select Previous List Item
	Copy Text Only
	Paste Text Only
End
There is one issue however: when you "freeze" the items (eg: convert them to plain text) they will lose the indents that were derived from the list style. This won't be a problem if the list style is inherited via a paragraph style, but otherwise the indents won't be quite right.

Posted: 2008-07-08 16:07:33
by Bob Stern
Thanks a million, Martin! Works perfectly!

(I had tried something similar, but I had used "Copy" followed by "Paste Text Only". It didn't occur to me to use "Copy Text Only". That turned out to be the key to preserving the list numbers.)