Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.docmanagement
trendicoff trendicoff is offline
external usenet poster
 
Posts: 6
Default Limiting ConvertNumbersToText to only certain parts of a document

I have a document with lots of different instances of auto-numbering.
I want to hardcode only the auto numbering that is contained in
tables. Is there any way to constrain the ConvertNumbersToText
command to only include or exclude certain items? For instance I know
that the command ActiveDocument.Tables.ConvertNumbersToText is
invalid, but is there any way to make that idea work?
  #2   Report Post  
Posted to microsoft.public.word.docmanagement
Stefan Blom[_3_] Stefan Blom[_3_] is offline
external usenet poster
 
Posts: 6,897
Default Limiting ConvertNumbersToText to only certain parts of a document

You can use

Selection.Range.ListFormat.ConvertNumbersToText

to convert the numbering in the current selection.

--
Stefan Blom
Microsoft Word MVP



"trendicoff" wrote in message
...
I have a document with lots of different instances of auto-numbering.
I want to hardcode only the auto numbering that is contained in
tables. Is there any way to constrain the ConvertNumbersToText
command to only include or exclude certain items? For instance I know
that the command ActiveDocument.Tables.ConvertNumbersToText is
invalid, but is there any way to make that idea work?



  #3   Report Post  
Posted to microsoft.public.word.docmanagement
Stefan Blom[_3_] Stefan Blom[_3_] is offline
external usenet poster
 
Posts: 6,897
Default Limiting ConvertNumbersToText to only certain parts of a document


You can use

Selection.Range.ListFormat.ConvertNumbersToText

to convert the numbering in the current selection.

--
Stefan Blom
Microsoft Word MVP



"trendicoff" wrote in message
...
I have a document with lots of different instances of auto-numbering.
I want to hardcode only the auto numbering that is contained in
tables. Is there any way to constrain the ConvertNumbersToText
command to only include or exclude certain items? For instance I know
that the command ActiveDocument.Tables.ConvertNumbersToText is
invalid, but is there any way to make that idea work?



  #4   Report Post  
Posted to microsoft.public.word.docmanagement
trendicoff trendicoff is offline
external usenet poster
 
Posts: 6
Default Limiting ConvertNumbersToText to only certain parts of a docum

Stefan,

Thanks, I guess that will save me some time, but as the lists I want to
change and those I don't are interspersed it will still be many steps. Is
there any way to select just tables or just exclude headings?

"Stefan Blom" wrote:

You can use

Selection.Range.ListFormat.ConvertNumbersToText

to convert the numbering in the current selection.

--
Stefan Blom
Microsoft Word MVP



"trendicoff" wrote in message
...
I have a document with lots of different instances of auto-numbering.
I want to hardcode only the auto numbering that is contained in
tables. Is there any way to constrain the ConvertNumbersToText
command to only include or exclude certain items? For instance I know
that the command ActiveDocument.Tables.ConvertNumbersToText is
invalid, but is there any way to make that idea work?



.

  #5   Report Post  
Posted to microsoft.public.word.docmanagement
trendicoff trendicoff is offline
external usenet poster
 
Posts: 6
Default Limiting ConvertNumbersToText to only certain parts of a docum

Stefan,

Thanks, I guess that will save me some time, but as the lists I want to
change and those I don't are interspersed it will still be many steps. Is
there any way to select just tables or just exclude headings?

"Stefan Blom" wrote:

You can use

Selection.Range.ListFormat.ConvertNumbersToText

to convert the numbering in the current selection.

--
Stefan Blom
Microsoft Word MVP



"trendicoff" wrote in message
...
I have a document with lots of different instances of auto-numbering.
I want to hardcode only the auto numbering that is contained in
tables. Is there any way to constrain the ConvertNumbersToText
command to only include or exclude certain items? For instance I know
that the command ActiveDocument.Tables.ConvertNumbersToText is
invalid, but is there any way to make that idea work?



.



  #6   Report Post  
Posted to microsoft.public.word.docmanagement
Stefan Blom[_3_] Stefan Blom[_3_] is offline
external usenet poster
 
Posts: 6,897
Default Limiting ConvertNumbersToText to only certain parts of a docum

In theory, you could use

Sub TestMacro()

For Each t In ActiveDocument.Tables
t.Range.ListFormat.ConvertNumbersToText
Next t
End Sub

to convert list items in table cells. But note that if there are items of that
same list outside of the table, they will renumber, which is probably not what
you want.

In other words, it would be easier to convert all numbering (although it isn't
exactly what you want to do).

--
Stefan Blom
Microsoft Word MVP
(Message posted via NNTP)



"trendicoff" wrote in message
...
Stefan,

Thanks, I guess that will save me some time, but as the lists I want to
change and those I don't are interspersed it will still be many steps. Is
there any way to select just tables or just exclude headings?

"Stefan Blom" wrote:

You can use

Selection.Range.ListFormat.ConvertNumbersToText

to convert the numbering in the current selection.

--
Stefan Blom
Microsoft Word MVP



"trendicoff" wrote in message
...
I have a document with lots of different instances of auto-numbering.
I want to hardcode only the auto numbering that is contained in
tables. Is there any way to constrain the ConvertNumbersToText
command to only include or exclude certain items? For instance I know
that the command ActiveDocument.Tables.ConvertNumbersToText is
invalid, but is there any way to make that idea work?



.




  #7   Report Post  
Posted to microsoft.public.word.docmanagement
Stefan Blom[_3_] Stefan Blom[_3_] is offline
external usenet poster
 
Posts: 6,897
Default Limiting ConvertNumbersToText to only certain parts of a docum


In theory, you could use

Sub TestMacro()

For Each t In ActiveDocument.Tables
t.Range.ListFormat.ConvertNumbersToText
Next t
End Sub

to convert list items in table cells. But note that if there are items of that
same list outside of the table, they will renumber, which is probably not what
you want.

In other words, it would be easier to convert all numbering (although it isn't
exactly what you want to do).

--
Stefan Blom
Microsoft Word MVP
(Message posted via NNTP)



"trendicoff" wrote in message
...
Stefan,

Thanks, I guess that will save me some time, but as the lists I want to
change and those I don't are interspersed it will still be many steps. Is
there any way to select just tables or just exclude headings?

"Stefan Blom" wrote:

You can use

Selection.Range.ListFormat.ConvertNumbersToText

to convert the numbering in the current selection.

--
Stefan Blom
Microsoft Word MVP



"trendicoff" wrote in message
...
I have a document with lots of different instances of auto-numbering.
I want to hardcode only the auto numbering that is contained in
tables. Is there any way to constrain the ConvertNumbersToText
command to only include or exclude certain items? For instance I know
that the command ActiveDocument.Tables.ConvertNumbersToText is
invalid, but is there any way to make that idea work?



.




Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Any way to limit ConvertNumbersToText Ari Bendicoff Microsoft Word Help 8 May 5th 10 06:14 PM
how do you protect only parts of a document? Tonia Petersen Microsoft Word Help 1 May 5th 09 08:11 PM
ConvertNumbersToText doesn't quite tocuin hollisgroup com> Microsoft Word Help 1 December 5th 08 09:10 PM
Limiting Editing on Document Critzy Microsoft Word Help 2 November 27th 06 05:24 PM
Limiting number of lines of unprotected text in a document graphicguy Microsoft Word Help 5 July 1st 05 08:45 PM


All times are GMT +1. The time now is 01:20 PM.

Copyright ©2000 - 2023, Jelsoft Enterprises Ltd.
Copyright 2004-2023 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"