How to Mark Text for Table of Authorities

M

MarceepooNu

I can't figure out how to copy selected text into a table of authorities. I
used the Tools, Macro, Record macro routine to record the code below"

ActiveDocument.TablesOfAuthorities.MarkCitation Range:=Selection.Range, _
ShortCitation:="Welfare and Institutions Code § 15657.03(b)(3)", _
LongCitation:="Welfare and Institutions Code § 15657.03(b)(3)",
LongCitationAutoText:="", Category:=1

I can't figure out how to copy the selected text to a variable that can hold
rich text, and insert that variable in place of the text:
"Welfare and Institutions Code § 15657.03(b)(3)"

But maybe that isn't the solution I should be seeking. Any suggestions
about how to get the macro to do what I want would be much appreciated.

Btw, I realize that the "Category:=1" applies to cases, and not statutes.
After I solve the problem explained above, I plan to create an inputbox,
where the user will select the right category.

Thanks in advance for any tips where I could learn the material I should
understand to solve this, and/or for coding that would solve my immediate
problem.

MarceepooNu
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top