Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 10-20-2015, 02:00 PM
gn4619 gn4619 is offline How to keep the footnote(endnote) reference numbers when pasting text between two documents? Windows 7 64bit How to keep the footnote(endnote) reference numbers when pasting text between two documents? Office 2010 32bit
Novice
How to keep the footnote(endnote) reference numbers when pasting text between two documents?
 
Join Date: Apr 2015
Posts: 25
gn4619 is on a distinguished road
Default How to keep the footnote(endnote) reference numbers when pasting text between two documents?

How to keep the footnote(endnote) reference numbers when pasting text from one Word document to another? I know it's very difficult, but appreciate it if anyone can help.
Reply With Quote
  #2  
Old 10-20-2015, 02:43 PM
macropod's Avatar
macropod macropod is offline How to keep the footnote(endnote) reference numbers when pasting text between two documents? Windows 7 64bit How to keep the footnote(endnote) reference numbers when pasting text between two documents? Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,956
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Any footnotes & endnotes you copy & paste between document will be renumbered to fit the sequence into which they're inserted in the destination document. That is unavoidable. If you have the numbering set to re-start with each Section or page (for footnotes) that may be acceptable. However, if you want continuous numbering, the only workaround would be to insert Section breaks either side of the pasted content and set an appropriate starting # for that section. Doing so, however, will mess up your footnote & endnote numbering for all subsequent content.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #3  
Old 10-20-2015, 03:23 PM
gn4619 gn4619 is offline How to keep the footnote(endnote) reference numbers when pasting text between two documents? Windows 7 64bit How to keep the footnote(endnote) reference numbers when pasting text between two documents? Office 2010 32bit
Novice
How to keep the footnote(endnote) reference numbers when pasting text between two documents?
 
Join Date: Apr 2015
Posts: 25
gn4619 is on a distinguished road
Default Thanks, Macropod, for you quick reply.

Your reply actually gives me some idea: I can add a section break before and after the text I am pasting in the destination document, and get the reference number of the first footnote within that piece of text as a text string, and set the section in the destination document to start the footnotes within from that particular number. As I really want to do it via VBA, can you help me with getting the reference number of a footnote as a text string? Thanks.
Reply With Quote
  #4  
Old 10-20-2015, 03:45 PM
macropod's Avatar
macropod macropod is offline How to keep the footnote(endnote) reference numbers when pasting text between two documents? Windows 7 64bit How to keep the footnote(endnote) reference numbers when pasting text between two documents? Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,956
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

If the footnote references are numeric, you could use code like:
Code:
Sub Demo()
Dim StrRef As String
With Selection
  If .Footnotes.Count > 0 Then
    StrRef = .Footnotes(1).Index
    MsgBox StrRef
  End If
End With
End Sub
If they're anything else (e.g. roman numerals), you'll need code like:
Code:
Sub Demo()
Dim Rng As Range, StrRef As String, i As Long
With Selection
  If .Footnotes.Count > 0 Then
    i = .Footnotes(1).Index
    Set Rng = .Footnotes(1).Reference
    With Rng
      'To get the actual reference text, we need to cross-reference it!
      .Collapse wdCollapseStart
      .InsertCrossReference wdRefTypeFootnote, wdFootnoteNumber, i, False, False
      .End = .End + 1
      StrRef = .Fields(1).Result
      .Fields(1).Delete
    End With
    MsgBox StrRef
  End If
End With
Set Rng = Nothing
End Sub
Do note what I said in my previous post, though, about the implications on the rest of your document of doing what you're suggesting. I think you'll find the result unacceptable.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #5  
Old 10-22-2015, 08:01 AM
gn4619 gn4619 is offline How to keep the footnote(endnote) reference numbers when pasting text between two documents? Windows 7 64bit How to keep the footnote(endnote) reference numbers when pasting text between two documents? Office 2010 32bit
Novice
How to keep the footnote(endnote) reference numbers when pasting text between two documents?
 
Join Date: Apr 2015
Posts: 25
gn4619 is on a distinguished road
Default Thanks for your help!//

Thanks for your help. It solved my problem.
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to keep the footnote(endnote) reference numbers when pasting text between two documents? Convert endnote/footnote to regular text Cobb78 Word 5 07-11-2016 06:23 AM
Macro to find text only footnote numbers TimFromPhx Word VBA 7 04-10-2014 07:05 PM
How to keep the footnote(endnote) reference numbers when pasting text between two documents? Endnote in footnote? kerstin Word 2 06-26-2011 11:23 PM
endnote and import reference from word to endnote uncung Word 0 06-18-2011 08:09 AM
How to keep the footnote(endnote) reference numbers when pasting text between two documents? Cross-reference endnote text smed Word 3 01-14-2011 03:34 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 03:18 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft