FacebookTwitter
Hatrack River Forum   
my profile login | search | faq | forum home

  next oldest topic   next newest topic
» Hatrack River Forum » Active Forums » Books, Films, Food and Culture » Tech Help: Desperately need help in inserting custom fields into a Word template.

   
Author Topic: Tech Help: Desperately need help in inserting custom fields into a Word template.
katharina
Member
Member # 827

 - posted      Profile for katharina   Email katharina         Edit/Delete Post 
I have been instructed to recreate a WordPerfect template in Word. I can and have done everything for the Word template EXCEPT: When you create a new document from the WordPerfect template, it first displays a prompt asking for certain information. You fill in the text boxes on the prompt, and then the new document opens with the filled-in information in the appropriate spots.

I'm sure it uses macros and fields to do this, but I can't figure out how. [Frown] Anyone want to e-mail me? *hopeful* If you send it through the board, I'll e-mail back right away with the WordPerfect template so you can see what needs to be recreated and I'll send the Word template I have so far.

If no WordPerfect, I'll send a screen shot of both the prompt and then the document from the template.

I've created macros before - I know the general idea. [Frown] I'm really sad I can't figure this out.

Posts: 26077 | Registered: Mar 2000  |  IP: Logged | Report this post to a Moderator
TomDavidson
Member
Member # 124

 - posted      Profile for TomDavidson   Email TomDavidson         Edit/Delete Post 
You want to use named form fields in Word, which you can reference through VBscript (i.e. a macro). You'll then write a macro that runs "on open" to prompt for data to put into each of the named fields.

You can also accomplish a somewhat simpler version of this by using the FILLIN Word field. From what you've described, FILLIN (or ASK, which is another field that does roughly the same thing, depending on your version) will meet all of your needs.

ASK is more complex than FILLIN. If your version is compatible, you'll find some instructions on its use here:
http://office.microsoft.com/en-us/word/HP100779621033.aspx

Posts: 37449 | Registered: May 1999  |  IP: Logged | Report this post to a Moderator
katharina
Member
Member # 827

 - posted      Profile for katharina   Email katharina         Edit/Delete Post 
Great!

....

Okay, I've inserted a text field, named it, and added a bookmark for it.

Is there a standard macro that I can customize to run "on open"?

Posts: 26077 | Registered: Mar 2000  |  IP: Logged | Report this post to a Moderator
TomDavidson
Member
Member # 124

 - posted      Profile for TomDavidson   Email TomDavidson         Edit/Delete Post 
Whoops! I've added more data above. [Smile]

(After initially recommending VB, because that's what I wind up using, I realized that you could probably get by with just a FILLIN or ASK field. You'll want to save the document as a template in either case.)

Posts: 37449 | Registered: May 1999  |  IP: Logged | Report this post to a Moderator
katharina
Member
Member # 827

 - posted      Profile for katharina   Email katharina         Edit/Delete Post 
Oh, even better. This is perfect. [Smile]
Posts: 26077 | Registered: Mar 2000  |  IP: Logged | Report this post to a Moderator
katharina
Member
Member # 827

 - posted      Profile for katharina   Email katharina         Edit/Delete Post 
Okay, I've created all of the Fill-in fields.

And...yay! It works! It works!

Now, one more question. Is there any way to get all of the fill-in prompts to appear on one pop-up screen?

Posts: 26077 | Registered: Mar 2000  |  IP: Logged | Report this post to a Moderator
TomDavidson
Member
Member # 124

 - posted      Profile for TomDavidson   Email TomDavidson         Edit/Delete Post 
To my knowledge, no -- not without using VBA or some other tool for form entry. I've seen some clever simulacra of this functionality in Excel, though. And you can do a similar thing by using Sections in Word and listing form fields in the first Section that are referenced in the second Section (which has your actual destination document).

Of course, if the users of this document really ARE just filling out forms, you might want to look into InfoPath or Access instead of Word.

Posts: 37449 | Registered: May 1999  |  IP: Logged | Report this post to a Moderator
katharina
Member
Member # 827

 - posted      Profile for katharina   Email katharina         Edit/Delete Post 
They aren't. It is the template for a memo, and the idea is to get a prompt before the new cocuement opens for the five areas for the top of the memo.

I wouldn't do it that way - I'd put in the fields and they can click on the fields and replace with the text - but that's not how it was requested. If there is no way for me to put it on one form, then...I think I'll create the multiple requests template, the straight template where they would click and replace, and then say for the third kind they need to get one of the programmers to help.

Posts: 26077 | Registered: Mar 2000  |  IP: Logged | Report this post to a Moderator
rivka
Member
Member # 4859

 - posted      Profile for rivka   Email rivka         Edit/Delete Post 
*takes notes*

Looks useful. Thanks!

Posts: 32919 | Registered: Mar 2003  |  IP: Logged | Report this post to a Moderator
katharina
Member
Member # 827

 - posted      Profile for katharina   Email katharina         Edit/Delete Post 
Thanks for the help. It worked great and the template was acceptable. [Smile]
Posts: 26077 | Registered: Mar 2000  |  IP: Logged | Report this post to a Moderator
   

   Close Topic   Feature Topic   Move Topic   Delete Topic next oldest topic   next newest topic
 - Printer-friendly view of this topic
Hop To:


Contact Us | Hatrack River Home Page

Copyright © 2008 Hatrack River Enterprises Inc. All rights reserved.
Reproduction in whole or in part without permission is prohibited.


Powered by Infopop Corporation
UBB.classic™ 6.7.2