From: Lauro on
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.
From: Peter Jamieson on
> 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

On 07/01/2010 20:23, Lauro wrote:
> 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.