Consulting

Results 1 to 20 of 25

Thread: Activedocument.Footnotes.Reference.Text

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Question Activedocument.Footnotes.Reference.Text

    Hi Everyone,

    I have a bit of a problem for which I'd like some input from the community. I have created a VBA macro in Word (2000, 2003, 2007 respond in the same manner) that requires me to obtain pre-existing reference mark values of footnotes and endnotes. When I attempt to obtain the actual text of the reference mark using "ActiveDocument.Footnotes.Reference.Text" I am given a square(!) -- presumably because Word cannot store/display the proper reference mark text -- whereas I am expecting a footnote numeral (e.g. "1" or "i" or "a").

    Has anyone else experienced this, and does a work-around exist?

    Here is an example that gives me a square instead of the proper "1" text value:

    Call ActiveDocument.Footnotes.Add(Selection.Range, , "Footnote text")
    MsgBox ActiveDocument.Footnotes.Item(1).Reference.Text
    Thanks for any insight!
    Last edited by Aussiebear; 04-07-2023 at 01:37 PM. Reason: Adjusted the code tags

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •