#1   Report Post  
Posted to microsoft.public.word.docmanagement
jane a. jane a. is offline
external usenet poster
 
Posts: 1
Default reformat endnote

word formatted my endnotes into superscripted numbers. i need to change
those into regular (no superscript) numbers surrounded by brackets. can
somebody please help me with this?

thank you.
  #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 reformat endnote

If you run the following macro, it will convert the endnotes to textnotes at
the end of the document and it would put brackets around the endnote
reference. You should save the document before running this macro and save
it with a new name after running it in case you want to go back and make
changes to the document.

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

' to put brackets around the endnote reference in the body of the document.

'

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

.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

"jane a." jane wrote in message
...
word formatted my endnotes into superscripted numbers. i need to change
those into regular (no superscript) numbers surrounded by brackets. can
somebody please help me with this?

thank you.



  #3   Report Post  
Posted to microsoft.public.word.docmanagement
jane a.[_2_] jane a.[_2_] is offline
external usenet poster
 
Posts: 1
Default reformat endnote

thank you so much!
-j

"Doug Robbins - Word MVP" wrote:

If you run the following macro, it will convert the endnotes to textnotes at
the end of the document and it would put brackets around the endnote
reference. You should save the document before running this macro and save
it with a new name after running it in case you want to go back and make
changes to the document.

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

' to put brackets around the endnote reference in the body of the document.

'

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

.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

"jane a." jane wrote in message
...
word formatted my endnotes into superscripted numbers. i need to change
those into regular (no superscript) numbers surrounded by brackets. can
somebody please help me with this?

thank you.




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 I Format Endnote References Differently in Body and Endnote Li Don Macnaughton Microsoft Word Help 3 March 2nd 08 10:59 PM
reformat paragraphs cbj Microsoft Word Help 5 February 19th 06 04:24 PM
unwanted reformat Mike Dobony Microsoft Word Help 4 April 19th 05 12:04 AM
How do I reformat an existing document? Sky Picture Taker Page Layout 2 April 14th 05 01:47 PM
How do I go from an endnote to the text where I placed the endnote MB_tax Microsoft Word Help 5 February 18th 05 12:56 PM


All times are GMT +1. The time now is 06:10 AM.

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

About Us

"It's about Microsoft Word"