Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.pagelayout
Nahshon Evren Nahshon Evren is offline
external usenet poster
 
Posts: 11
Default Formatting chapter numbers

Hi,

when I extract a piece of text from a longer text
and place it in a new document under WordXP
the chapter numbering resets from for example
1.2.3.4.5 to 1.1.1.1.1 - when I pass the mouse over the
original numbers that I'd like to conserve they seem shaded,
how can I stop this renumbering from the beginning and
conserve the original numbering ?

Thanks to all,

Nash


  #2   Report Post  
Posted to microsoft.public.word.pagelayout
Jezebel Jezebel is offline
external usenet poster
 
Posts: 1,384
Default Formatting chapter numbers

I don't know of an elegant way to do this, but this works --

1. Select the text you want to copy.
2. Press Alt-F11 to switch to VBA.
3. In the Immediate window (bottom right), type:
Selection.FormattedText.ListFormat.ConvertNumbersT oText
4. Copy your text.
5. Press Undo to reverse the conversion to plain text.


"Nahshon Evren" doctornash@polyclinic . ch wrote in message
...
Hi,

when I extract a piece of text from a longer text
and place it in a new document under WordXP
the chapter numbering resets from for example
1.2.3.4.5 to 1.1.1.1.1 - when I pass the mouse over the
original numbers that I'd like to conserve they seem shaded,
how can I stop this renumbering from the beginning and
conserve the original numbering ?

Thanks to all,

Nash




  #3   Report Post  
Posted to microsoft.public.word.pagelayout
Lene Fredborg Lene Fredborg is offline
external usenet poster
 
Posts: 1,291
Default Formatting chapter numbers

If you often need to copy text from one document and paste it into another
document with the numbering unchanged, you could use a macro to perform the
copying steps that are required. If you assign the macro to a toolbar button
or a keyboard shortcut, it is as fast to execute as a normal copy.

You can use the macro below. The actions performed by the macro correspond
to the steps described by Jezebel in the previous post, i.e. the macro:
- changes automatically generated numbers (in headings, lists) in the
selected text to normal text so that the numbers do not change when pasted
into another document
- copies the text
- undoes the change in the original document

If you use the macro to copy the desired text, you only need to go to the
destination document and select paste (Ctrl+V).

Note:
If you reapply a numbered style to a paragraph that has been changed by the
macro, the paragraph will have two numbers: an automatically applied number
plus the "old" number that was converted to normal text (must be corrected
manually).
It is always a good idea to create a backup copy of your original document
in case problems should occur.


The macro:

Sub CopySelection_PreserveNumbersWhenPasting()
Dim oRange As Range

Set oRange = Selection.Range
'Unlink heading numbers in range
With oRange
.ListFormat.ConvertNumbersToText wdNumberParagraph
.Copy
End With
'Undo the change
ActiveDocument.Undo

Set oRange = Nothing

End Sub

--
Regards
Lene Fredborg
DocTools - Denmark
www.thedoctools.com
Document automation - add-ins, macros and templates for Microsoft Word


"Nahshon Evren" wrote:

Hi,

when I extract a piece of text from a longer text
and place it in a new document under WordXP
the chapter numbering resets from for example
1.2.3.4.5 to 1.1.1.1.1 - when I pass the mouse over the
original numbers that I'd like to conserve they seem shaded,
how can I stop this renumbering from the beginning and
conserve the original numbering ?

Thanks to all,

Nash



  #4   Report Post  
Posted to microsoft.public.word.pagelayout
Stefan Blom Stefan Blom is offline
external usenet poster
 
Posts: 8,428
Default Formatting chapter numbers

Another method is to copy the text and then, on the Edit menu, click
Paste Special. Choose to paste as "Unformatted Text."

--
Stefan Blom
Microsoft Word MVP


"Nahshon Evren" wrote in message
...
Hi,

when I extract a piece of text from a longer text
and place it in a new document under WordXP
the chapter numbering resets from for example
1.2.3.4.5 to 1.1.1.1.1 - when I pass the mouse over the
original numbers that I'd like to conserve they seem shaded,
how can I stop this renumbering from the beginning and
conserve the original numbering ?

Thanks to all,

Nash





  #5   Report Post  
Posted to microsoft.public.word.pagelayout
Nahshon Evren Nahshon Evren is offline
external usenet poster
 
Posts: 11
Default Formatting chapter numbers

I'll try that thanks


"Jezebel" a écrit dans le message de news:
...
I don't know of an elegant way to do this, but this works --

1. Select the text you want to copy.
2. Press Alt-F11 to switch to VBA.
3. In the Immediate window (bottom right), type:
Selection.FormattedText.ListFormat.ConvertNumbersT oText
4. Copy your text.
5. Press Undo to reverse the conversion to plain text.


"Nahshon Evren" doctornash@polyclinic . ch wrote in message
...
Hi,

when I extract a piece of text from a longer text
and place it in a new document under WordXP
the chapter numbering resets from for example
1.2.3.4.5 to 1.1.1.1.1 - when I pass the mouse over the
original numbers that I'd like to conserve they seem shaded,
how can I stop this renumbering from the beginning and
conserve the original numbering ?

Thanks to all,

Nash








  #6   Report Post  
Posted to microsoft.public.word.pagelayout
Nahshon Evren Nahshon Evren is offline
external usenet poster
 
Posts: 11
Default Formatting chapter numbers

Thanks Lene and Stefan I'll try these ideas



"Stefan Blom" a écrit dans le message de news:
...
Another method is to copy the text and then, on the Edit menu, click
Paste Special. Choose to paste as "Unformatted Text."

--
Stefan Blom
Microsoft Word MVP


"Nahshon Evren" wrote in message
...
Hi,

when I extract a piece of text from a longer text
and place it in a new document under WordXP
the chapter numbering resets from for example
1.2.3.4.5 to 1.1.1.1.1 - when I pass the mouse over the
original numbers that I'd like to conserve they seem shaded,
how can I stop this renumbering from the beginning and
conserve the original numbering ?

Thanks to all,

Nash







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
Add chapter numbers to captions after-the-fact Heidi Microsoft Word Help 2 December 28th 06 06:12 PM
How do I add Columns, to a chapter w/o page numbers starting over Bob Page Layout 1 December 14th 06 12:41 AM
How To Create Chapters with Page Numbering Suzanne Microsoft Word Help 8 November 29th 06 12:31 AM
automatic numbering of chapter numbers Rob van der Heijden Page Layout 2 June 11th 06 03:52 PM
Formatting Footer Page Numbers Greg New Users 1 August 13th 05 02:24 AM


All times are GMT +1. The time now is 12:00 AM.

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

About Us

"It's about Microsoft Word"