M
MarceepooNu
Confession: I posted this question in microsoft.public.word.vba.general on
8/5/2009 9:57 PM PST, but haven't gotten any responses yet.
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
8/5/2009 9:57 PM PST, but haven't gotten any responses yet.
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