Computer Forum Forum Index
Register  FAQ Profile Log in to check your private messages Log in Register 

Obtaining the current value of outline numbered style

 
Post new topic   Reply to topic    Computer Forum Forum Index -> microsoft word vba general
View previous topic :: View next topic  
Author Message
Peter
Guest





PostPosted: Tue Dec 18, 2007 2:59 pm    Post subject: Obtaining the current value of outline numbered style Reply with quote

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
Back to top
Google
Sponsor





PostPosted: Tue Dec 18, 2007 2:59 pm    Post subject: Advertisement

Back to top
Chip Orange
Guest





PostPosted: Tue Dec 18, 2007 5:35 pm    Post subject: Re: Obtaining the current value of outline numbered style Reply with quote

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


"Peter" <Peter@discussions.microsoft.com> wrote in message
news:B08C30CD-02B3-46A6-A69F-0C0C46FFCF69@microsoft.com...
Quote:
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
Back to top
Peter
Guest





PostPosted: Tue Dec 18, 2007 6:36 pm    Post subject: Re: Obtaining the current value of outline numbered style Reply with quote

Chip,

This approach does not work with numbered styles.

Peter

"Chip Orange" wrote:

Quote:
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


"Peter" <Peter@discussions.microsoft.com> wrote in message
news:B08C30CD-02B3-46A6-A69F-0C0C46FFCF69@microsoft.com...
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


Back to top
Stefan Blom
Guest





PostPosted: Wed Dec 19, 2007 11:34 am    Post subject: RE: Obtaining the current value of outline numbered style Reply with quote

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.

--
Stefan Blom
Microsoft Word MVP


"Peter" wrote:

Quote:
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
Back to top
Peter
Guest





PostPosted: Wed Dec 19, 2007 1:00 pm    Post subject: RE: Obtaining the current value of outline numbered style Reply with quote

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

"Stefan Blom" wrote:

Quote:
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.

--
Stefan Blom
Microsoft Word MVP


"Peter" wrote:

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
Back to top
Stefan Blom
Guest





PostPosted: Wed Dec 19, 2007 1:17 pm    Post subject: Re: Obtaining the current value of outline numbered style Reply with quote

Did you read the linked article?

--
Stefan Blom
Microsoft Word MVP


"Peter" wrote in message
news:9DF010B6-57E5-4CF7-827F-BFACA0CAEB68@microsoft.com...
Quote:
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

"Stefan Blom" wrote:

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.

--
Stefan Blom
Microsoft Word MVP


"Peter" wrote:

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
Back to top
Peter
Guest





PostPosted: Wed Dec 19, 2007 2:17 pm    Post subject: Re: Obtaining the current value of outline numbered style Reply with quote

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

"Stefan Blom" wrote:

Quote:
Did you read the linked article?

--
Stefan Blom
Microsoft Word MVP


"Peter" wrote in message
news:9DF010B6-57E5-4CF7-827F-BFACA0CAEB68@microsoft.com...
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

"Stefan Blom" wrote:

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.

--
Stefan Blom
Microsoft Word MVP


"Peter" wrote:

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




Back to top
Stefan Blom
Guest





PostPosted: Thu Dec 20, 2007 10:56 am    Post subject: Re: Obtaining the current value of outline numbered style Reply with quote

You are welcome.

--
Stefan Blom
Microsoft Word MVP


"Peter" wrote in message
news:8E1BF6BE-A645-4FA4-91E3-EF653299B2E6@microsoft.com...
Quote:
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

"Stefan Blom" wrote:

Did you read the linked article?

--
Stefan Blom
Microsoft Word MVP


"Peter" wrote in message
news:9DF010B6-57E5-4CF7-827F-BFACA0CAEB68@microsoft.com...
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

"Stefan Blom" wrote:

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.

--
Stefan Blom
Microsoft Word MVP


"Peter" wrote:

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




Back to top
Display posts from previous:   
Post new topic   Reply to topic    Computer Forum Forum Index -> microsoft word vba general All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Computer Forum