U
utnj
I have a template that currently uses a custom toolbar to call macros,
which then insert AutoText using WordBasic functions. I need to make
changes to the existing AutoText entries, add new functions, and make
some general enhancements to the template.
I am assuming I should first replace the WordBasic functions with the
VBA Equivalents....
ex: WordBasic.WW7_EditAutoText Name:="PreDefinedAutoText", Context:=0,
Insert:=1
changes to...
ActiveDocument.AttachedTemplate.AutoTextEntries("PreDefinedAutoText").Insert
Where:=Selection.Range, RichText:=True
Would I be better off placing all the formatting within the VBA
function itself, or still using AutoText to set the formatting? Note:
The types of information stored in the AutoText entries are mainly
Table Layouts, but there are also bullets, Headings, Page Breaks, etc.
which then insert AutoText using WordBasic functions. I need to make
changes to the existing AutoText entries, add new functions, and make
some general enhancements to the template.
I am assuming I should first replace the WordBasic functions with the
VBA Equivalents....
ex: WordBasic.WW7_EditAutoText Name:="PreDefinedAutoText", Context:=0,
Insert:=1
changes to...
ActiveDocument.AttachedTemplate.AutoTextEntries("PreDefinedAutoText").Insert
Where:=Selection.Range, RichText:=True
Would I be better off placing all the formatting within the VBA
function itself, or still using AutoText to set the formatting? Note:
The types of information stored in the AutoText entries are mainly
Table Layouts, but there are also bullets, Headings, Page Breaks, etc.