How to add an attribute to a Content Control in Word 2007

L

Lauro

Hi,

I would like to add one or more attribute to RTF Content Controls in
Word 2007.

I can't and I don't want (or need) to map my RTF Content Controls to a
Custom XML Part.

How can I do?

I need those attribute for some text manipulations inside Word via VBA.
Maybe I could use the TAG propriety and use it as an attribute but it doesn't
seem very nice.
 
P

Peter Jamieson

I can't and I don't want (or need) to map my RTF Content
Controls to a
Custom XML Part.

I guess you could do it this way in theory, but if it isn't an option
for you then I doubt if there is a "nice" approach.

Personally I would probably consider using the tag property to name a
set of Word Document variables and store my attributes in there., e.g.

if you use tag "abc" then you could have attributes stored in Variables
called abc1, abc2 etc., or if you need name:value pairs, use

abcname1
abcname2
abcname3

etc.

Not very nice as I suspect it might be easy to lose the tag and
therefore the association with the Variables, but at least
a. it's something
b. you wouldn't actually have to store multiple values in a tag (I
don't know how long the tag can be anyway)


Peter Jamieson

http://tips.pjmsn.me.uk
 

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