Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Long Documents / February 2004

Tip: Looking for answers? Try searching our database.

Gathering Endnotes into a Separate Document

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Michael Strangelove - 18 Feb 2004 02:13 GMT
Greetings,

I am preparing a manuscript for a publisher and need to gather the endnotes
from each chapter into ONE separate file (with each chapter's endnotes
beginning at #1).

Is this possible to do in Word (version 97 SR-1)?

Regards,

Dr. Michael Strangelove
michael@strangelove.com
Doug Robbins - Word MVP - DELETE UPPERCASE CHARACTERS FROM EMAIL ADDRESS - 18 Feb 2004 02:49 GMT
Hi Michael,

The following macro could probably be modified to do that:

' 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

Signature

Please post any further questions or followup to the newsgroups for the
benefit of others who may be interested.  Unsolicited questions forwarded
directly to me will only be answered on a paid consulting basis.
Hope this helps
Doug Robbins - Word MVP

> Greetings,
>
[quoted text clipped - 9 lines]
> Dr. Michael Strangelove
> michael@strangelove.com
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.