Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
how do I copy a section of a word document including line numbers
Hi,
I'm trying to copy a section of a word document into another word document. The problem is I want to transfer the original line numbers into the new document. i.e. copy lines 586 - 597 and when I insert/paste into the new document they are still numbered 586-597 as per the original formatting and numbering. Is this possible? I'm using Word 2002 Many thanks |
#2
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
how do I copy a section of a word document including line numbers
You can't do it automatically.
After you copy and paste the material to the new document, you need to open File Page Setup Layout Line Numbers and manually enter the starting number that matches the number in the original document (e.g., 586). If you have multiple segments like this, with or without unnumbered segments around them, you'll have to separate them with section breaks -- an entire section must be numbered or unnumbered. -- Regards, Jay Freedman Microsoft Word MVP FAQ: http://word.mvps.org Email cannot be acknowledged; please post all follow-ups to the newsgroup so all may benefit. Dissertation Student wrote: Hi, I'm trying to copy a section of a word document into another word document. The problem is I want to transfer the original line numbers into the new document. i.e. copy lines 586 - 597 and when I insert/paste into the new document they are still numbered 586-597 as per the original formatting and numbering. Is this possible? I'm using Word 2002 Many thanks |
#3
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
how do I copy a section of a word document including line numb
Jay,
Thanks for that, not really what I wanted to hear as I'll have dozens of entries to have to fromat, some will have the same numbering as previous entries as I am taking sections from six different word documents ( ... oh well .. who needs sleep anyway ) "Jay Freedman" wrote: You can't do it automatically. After you copy and paste the material to the new document, you need to open File Page Setup Layout Line Numbers and manually enter the starting number that matches the number in the original document (e.g., 586). If you have multiple segments like this, with or without unnumbered segments around them, you'll have to separate them with section breaks -- an entire section must be numbered or unnumbered. -- Regards, Jay Freedman Microsoft Word MVP FAQ: http://word.mvps.org Email cannot be acknowledged; please post all follow-ups to the newsgroup so all may benefit. Dissertation Student wrote: Hi, I'm trying to copy a section of a word document into another word document. The problem is I want to transfer the original line numbers into the new document. i.e. copy lines 586 - 597 and when I insert/paste into the new document they are still numbered 586-597 as per the original formatting and numbering. Is this possible? I'm using Word 2002 Many thanks |
#4
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
how do I copy a section of a word document including line numb
I shouldn't have left out an alternative: a macro to help with the
job. Use the information at http://www.gmayor.com/installing_macro.htm to set up this macro, and assign a button or keystroke to run it: Sub InsertLineNumberedSection() ' Assumes text is on the clipboard ' and will be inserted -- surrounded by ' continuous section breaks -- and assigned ' line numbers starting with a user-supplied ' value. Dim startNum As String With Selection ' Make sure the selection isn't extended .Collapse wdCollapseEnd ' Insert two continuous section breaks at the ' current cursor location .InsertBreak Type:=wdSectionBreakContinuous .InsertBreak Type:=wdSectionBreakContinuous ' Back up to the point between them .Move unit:=wdCharacter, Count:=-1 ' Insert clipboard contents .Paste ' Get the starting number startNum = InputBox$(Prompt:="Starting number:", _ Title:="Line Numbers", Default:="1") ' Assign the line number format With .Sections(1).PageSetup.LineNumbering .Active = True .StartingNumber = Val(startNum) .CountBy = 1 .RestartMode = wdRestartContinuous End With End With End Sub This will put in the section breaks at the current cursor location, paste from the clipboard (assuming you've already copied the text you want to insert), and pop up a box asking what line number to start at. -- Regards, Jay Freedman Microsoft Word MVP FAQ: http://word.mvps.org Email cannot be acknowledged; please post all follow-ups to the newsgroup so all may benefit. On Wed, 12 Apr 2006 09:28:01 -0700, Dissertation Student wrote: Jay, Thanks for that, not really what I wanted to hear as I'll have dozens of entries to have to fromat, some will have the same numbering as previous entries as I am taking sections from six different word documents ( ... oh well .. who needs sleep anyway ) "Jay Freedman" wrote: You can't do it automatically. After you copy and paste the material to the new document, you need to open File Page Setup Layout Line Numbers and manually enter the starting number that matches the number in the original document (e.g., 586). If you have multiple segments like this, with or without unnumbered segments around them, you'll have to separate them with section breaks -- an entire section must be numbered or unnumbered. -- Regards, Jay Freedman Microsoft Word MVP FAQ: http://word.mvps.org Email cannot be acknowledged; please post all follow-ups to the newsgroup so all may benefit. Dissertation Student wrote: Hi, I'm trying to copy a section of a word document into another word document. The problem is I want to transfer the original line numbers into the new document. i.e. copy lines 586 - 597 and when I insert/paste into the new document they are still numbered 586-597 as per the original formatting and numbering. Is this possible? I'm using Word 2002 Many thanks |
Reply |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Word 97 in Windows XP to maintain formatting | Microsoft Word Help | |||
Converting Word Perfect forms to Word forms | Microsoft Word Help | |||
WP merge file to Word | Tables | |||
How do I set right and left alignment on the same line in Word? | Page Layout | |||
Envelope Address | New Users |