

Initialize an instance of the Document class Save the result document using Document.SaveToFile() method.Set formatting such as font name, font size and text color for the footnote text and reference mark.


Insert the footnote reference mark after the text range using () method.Add a footnote to the paragraph using Paragraph.AppendFootnote(FootnoteType.Footnote) method.Access the owner paragraph of the text range through TextRange.OwnerParagraph property and get the index of the text range in the paragraph using () method.Search for a specific text in the document using Document.FindString() method and get the found text as a single text range using TextSelection.GetAsOneRange() method.Load a Word document using Document.LoadFromFile() method.Initialize an instance of the Document class.To insert a footnote for a specific text, you need to search for the text and get the paragraph where the text is located, after that add a footnote to the paragraph, then insert the footnote reference mark after the found text and set the footnote text. So instead of opening the files or insert the files one by one, you can save the original files in macro enabled files and then run a macro to accomplish the task with one click.Insert a Footnote in Word in C# and VB.NETĪ footnote consists of two parts - a footnote reference mark and the corresponding footnote text. One possible use is that we have a large number of files to merge. This format allows one to run a macro on the file without actually opening the file. One thing I learned is that you can also save the document in word macro enabled format. If the footnotes are not properly formed, the numbering in the new file will not update. Footnote will automatically renumber.īut in my actual trouble-shooting process, the documents did not have correctly formed footnotes. The merged documents will have the same format. If we have more than two documents to merge, we can repeat the steps. To combine the two documents, follow the steps: Insert -> Objects -> text from file. Lastly, you can merge two documents to form one big file and then harmonize the footnote numbers. To use the stars, same path as above: References – Footnotes (the little down arrow) and then in the format part, type * in the box next to the symbol and then insert. Second, in law review article, the first footnote is usually not number 1, but a * or two stars: **. Path: References->Footnotes (the little down arrow) and then choose Footnote, convert endnote to footnote and click on the convert button. I think the solution would be good for others to know when they need it, so I am posting it here.įirst, there is an easy way to convert endnote to footnote in Word. I had a request from a faculty assistant concerning footnotes in Word.
