MarkCitation Method Example

This example inserts a table of authorities entry (a TA field) that references the selected text. The long citation text is set to "Forrester v. Craddock" and the category is set to Other Cases.

ActiveDocument.TablesOfAuthorities.MarkCitation _
    Range:=Selection.Range, ShortCitation:=Selection.Range.Text, _
    LongCitation:="Forrester v. Craddock", Category:=1

This example inserts a table of authorities entry that references the selected text. The entry text that appears in the table of authorities is the text typed into the input box and the category is set to Other Authorities.

citationText = InputBox("Type citation text")
ActiveDocument.TablesOfAuthorities.MarkCitation _
    Range:=Selection.Range, ShortCitation:=Selection.Range.Text, _
    LongCitation:=citationText, Category:=3