Obtaining the current value of outline numbered style

P

Peter

I have a document using outline numbered styles for the paragraphs. The user
selects a series of paragraphs and then runs a macro. The macro copies the
selection and pastes into a new document. The selected text may have started
at e.g. 9.2.3.5. The style is copied correctly to the new document but start
with 1.1.1.1.

I know how to programmatically set the "start at" propery of each Listlevel
in the style but, I can't figure out how to read the actual values of each
Listlevel in the selection (i.e 9.2.3.5).

Can anyone help out with this? Is my question clear?
BTW I'm using Office 2003.

Thanks,
Peter
 
C

Chip Orange

While I haven't done this, I have done something similar with sequence
counters.

With SEQ fields, I had the option of "reading" the "result" property of the
field if I wanted to try and restart things at the same value;
alternatively, for me anyway, I had the option of "unlinking" my selected
text before the copy. That way, everything copied with it's current values
in tact.

However, no further editing could be done that would result in the
renumbering or reordering of these counters, as they were not fields any
longer.

If you don't need the ability to add/delete/reorder your lists, then perhaps
there's a way with lists to turn them back into ordinary text as I did with
fields?

hth,

Chip
 
S

Stefan Blom

See http://word.mvps.org/faqs/numbering/liststring.htm.

Note, however, that if your just want to copy one or more paragraphs into
another document and "freeze" their outline numbering, just copy the text and
then, in the target document, paste as "Unformatted Text" (via Edit | Paste
Special); this will paste the paragraph number(s) as static text.
 
P

Peter

Stefan,

I got real excited about your proposal since it seemed at first that it
would solve my problem but unfortunately, most of the text contains tables.
Unformatted text converts my tables to plain text. This option will not work
either.

Is there no way to read the values? I am amazed that there would not be.

Peter
 
P

Peter

I'm sorry - I did not. I assumed the article was on how to paste unformatted
text. I just looked at it and it does answer my question.

Thanks!
Peter
 

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