Question

Asked on 2006-03-16 at 05:09:24ID: 25569084

Need to replace a word (e.g. "Skill") with an AutotextList Field using code...

by: MitchellVII500

Rating9.8Excellent

Hi,

I have a table on a mail merge template.  I want to use AutoTextList Fields to provide drop lists for Users to select from when completing the form.  As you know, Word strips Autotext List fields from a document when it merges (lord only knows who added that stupid 'feature').

Anyway, to work around this, I had the idea to just place a key word (e.g., "Skill") as a placeholder in my Template wherever I wanted my Autotext List Field, then after executing the merge, use code to cycle through the document replacing every instance of "Skill" with { AUTOTEXTLIST "Skill" \s "Skill Ratings" \t "Right-click to rate this Skill..." } and having Word recognize it as a field and not just text.

Any ideas on soem quick code to do this?  I am guessing I should add it to the Load Event of the form.

Thanks - I could do this in snap in Access, but Word VBA is like Greek to me :)

Mitchell

Related Solutions

Solution

Sign up now to view this solution! It's quick, easy, and secure to subscribe. We will return you to this solution, unlocked, when you’re done.

About this Solution

View Solution - Start Your 30-Day Free Trial
Zone
General
Tags
autotextlist vba word
Participating Experts
1
Solution Grade
A

Replies

 by:

Posted on 2006-03-16 at 05:54:06ID: 28870752

All comments and solutions are available to Premium Service Members only. Sign up to view the solution to this question. Already a member? Log in to view this solution.

Log In

Forgot your password?Sign up

Top Experts

Know a thing or two about Microsoft Office? Join our team of experts today.

    BrowseAre you an Expert?