Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Word AUTOTEXT and DOCPROPERTIES

Status
Not open for further replies.

pallottino

Technical User
Apr 7, 2003
12
IT
I stored some logos as autotext entries in MS Office Word 2003 SP1.
I'd like MSWord to pick up the right logo, depending on the Author of the document.
Eg.: if the Author of the new doc is Bob, the field (AUTOTEXT Logo_(DOCPROPERY Author)) would be result as (AUTOTEXT Logo_Bob) and the final result in the doc it would be the Bob's logo.
But it doesn't work! Why? Maybe the autotext entry name couldn't be made of two elements (letters and variable result)? Is there a workaround?
Sorry for my poor English...
 
Use an IF statement in the field codes.

Gerry
 
Thanks Gerry!! The solution you suggested is the same I use at now. It works but is not dynamically and is very complicated to manage if the authors are more one or two:

1) You need to make many nested IF fields: one IF field for each Author;

2) in case of new Authors you have to add new If fields manually.

My goal is a dynamically solution...

TNX in advence for the answere
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top