Footnotes moved to their actual position in the text 
Author Message
 Footnotes moved to their actual position in the text

Has anyone tried to create a macro which move the content of the footnote to
the place in the text where the reference is to that footnote?

What should be the approach to create such a macro?



Mon, 29 Dec 2003 16:15:07 GMT  
 Footnotes moved to their actual position in the text
Hi Aart,

The following macro will replace each footnote reference with the number of
the footnote followed by a hyphen and then the text of the footnote, all
inside square brackets [ ]

    Dim afn As Footnote
    For Each afn In ActiveDocument.Footnotes
        afn.Reference.InsertAfter "[" & afn.Index & " - " & afn.Range & "]"
    Next afn
    For Each afn In ActiveDocument.Footnotes
        afn.Reference.Delete
    Next afn

Please post any follow-up or new questions to the Newsgroups so that others
may benefit therefrom or contribute thereto.

Hope this helps,
Doug Robbins - Word MVP


Quote:
> Has anyone tried to create a macro which move the content of the footnote
to
> the place in the text where the reference is to that footnote?

> What should be the approach to create such a macro?



Mon, 29 Dec 2003 17:39:52 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Moving Text boxe position runtime in report

2. VBA that access a footnote reference in the footnote

3. Footnotes collection in Selection returns document.footnotes

4. Actual Cursor Column Position

5. HELP: I need the actual record position including deletes

6. Inserting Text in Front of Footnotes in VBA - Word 2000

7. Need a macro to embed footnote contents in text itself

8. Converting footnotes/endnotes to text

9. Read a Footnote's reference as text

10. footnote reference text is unreadable

11. Footer and footnotes in a Rich Text Box

12. Getting text of actual mail in preview

 

 
Powered by phpBB® Forum Software