Citation within a footnote

(Apologies for posting this to the wrong forum earlier. It belongs here instead.)

In Word, the wrong thing happens if you try to insert a citation in a footnote.

To reproduce: Create a footnote in Word. Type along. While still in the footnote, try to add a Zotero citation. (Pick a format such as MLA that uses in-text citations and doesn't itself try to create a footnote.) Depending on how long the document and how long the footnote are, either you'll get a VB error or your citation will get stuck into the body of the text instead of in the footnote.

The problem is in ZoteroInsertCitation. The line
Set oRange = ActiveDocument.Range(Start:=Selection.Range.End, End:=Selection.Range.End)
misbehaves when the selection point is in a footnote.
Sign In or Register to comment.