M
Mike Litzkow
Just about every template I look at contains some text "fields" which are
intended to be replaced by the user. For example, a fax template would
contain fields like "[Click here and type name]" and "[Click here and type
subject of fax]". These text fields are handled speically, as the user only
has to click once to select the whole phrase for replacement. This is a nice
property, which users seem to expect in templates. I want to be able to add
such fields to my own document, but I don't know how many such "place holder"
fields I will need ahead of time. I want to add these fields based on a menu
or toolbar click. My question is how can I create a field like this using VBA
and the Word or Office document object model, (not how to attach that code to
a menu or toolbar). I have been searching word help, MSDN docs, etc, but I
just don't know what to call a field that acts in this way, and cannot find
documentation on how to create such a field using VBA.
intended to be replaced by the user. For example, a fax template would
contain fields like "[Click here and type name]" and "[Click here and type
subject of fax]". These text fields are handled speically, as the user only
has to click once to select the whole phrase for replacement. This is a nice
property, which users seem to expect in templates. I want to be able to add
such fields to my own document, but I don't know how many such "place holder"
fields I will need ahead of time. I want to add these fields based on a menu
or toolbar click. My question is how can I create a field like this using VBA
and the Word or Office document object model, (not how to attach that code to
a menu or toolbar). I have been searching word help, MSDN docs, etc, but I
just don't know what to call a field that acts in this way, and cannot find
documentation on how to create such a field using VBA.