Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.docmanagement
Roger Roger is offline
external usenet poster
 
Posts: 35
Default unlink endnotes in my document

I have a document with endnotes. I am incorporating the references into
another document that is already alphabetized, how do I unlink the endnotes
in my document so that I can move the references around?
  #2   Report Post  
Posted to microsoft.public.word.docmanagement
Doug Robbins - Word MVP Doug Robbins - Word MVP is offline
external usenet poster
 
Posts: 8,832
Default unlink endnotes in my document

' Macro created 29/09/99 by Doug Robbins to replace endnotes with textnotes
at end of document

' to replace the endnote reference in the body of the document with a
superscript number.

'

Dim aendnote As Endnote

For Each aendnote In ActiveDocument.Endnotes

ActiveDocument.Range.InsertAfter vbCr & aendnote.Index & vbTab &
aendnote.Range

aendnote.Reference.InsertBefore "a" & aendnote.Index & "a"

Next aendnote

For Each aendnote In ActiveDocument.Endnotes

aendnote.Reference.Delete

Next aendnote

Selection.Find.ClearFormatting

Selection.Find.Replacement.ClearFormatting

With Selection.Find.Replacement.Font

.Superscript = True

End With

With Selection.Find

.Text = "(a)([0-9]{1,})(a)"

.Replacement.Text = "\2"

.Forward = True

.Wrap = wdFindContinue

.Format = True

.MatchWildcards = True

End With

Selection.Find.Execute Replace:=wdReplaceAll


--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP

"Roger" wrote in message
...
I have a document with endnotes. I am incorporating the references into
another document that is already alphabetized, how do I unlink the
endnotes
in my document so that I can move the references around?



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
Can't get Word 2003 to keep data file with mail merge main documen Yourcareercoach Mailmerge 9 August 10th 06 12:19 PM
How do I move endnotes to a new document? katwmn6 Microsoft Word Help 2 April 29th 06 06:16 PM
Returning extracted chapter (revised) back into parent document (and endnotes) DSG Microsoft Word Help 0 October 27th 05 07:53 PM
Add checkboxes with macro in Merge document? Bryan L Tables 3 October 19th 05 04:05 PM
inserting a word document Penny Microsoft Word Help 4 September 14th 05 11:36 AM


All times are GMT +1. The time now is 06:37 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"