Computing.Net > Forums > Office Software > Automating Text for a Word Form

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Automating Text for a Word Form

Reply to Message Icon

Name: bombay
Date: May 7, 2003 at 18:39:54 Pacific
OS: WIN Me
CPU/Ram: PIII/128MB
Comment:

I'm creating a form which needs some automated text. For example, there are several places in the form where I need to enter a person's name several times over, and it would be nice if I could just enter the name once, and have the other places in the form where the name is required self-populate. I'm talking quicker than cut&paste here. Anyone know how?



Sponsored Link
Ads by Google

Response Number 1
Name: RayMan
Date: May 8, 2003 at 07:21:26 Pacific
Reply:

You could us a mail merge function. this is common in mass mailings to have the same document personalized to different people.

You can read all about it in Help mail merge. there is also a document merge function although i haven't played with it.


0

Response Number 2
Name: RayMan
Date: May 8, 2003 at 07:25:18 Pacific
Reply:

Also lookup DDE (Dynamic Data Exchange)


0

Response Number 3
Name: SN
Date: May 9, 2003 at 09:41:35 Pacific
Reply:

If mail merge isn't for you, then you could record a macro that copies the first one and pastes it in the other locations. You can then assign a shortcut key to the macro so you can get it done in one keystroke after entering the name once. Post back if you need more info.
-SN


0

Response Number 4
Name: bombay
Date: May 9, 2003 at 16:49:56 Pacific
Reply:

I've used mail merge to address envelopes, but it grabs names from a database. What I need to do is enter a name once, say on page 1, then on pages 2,3,5, etc. I need that name to automatically be inserted, matching what I entered on page 1. I'm looking up DDE right now in Help, and it says what it is, but now how to use it (I'll keep digging). I'm not sure how to use a macro either. Would this work for a form I need to use over and over again, on different computers?


0

Response Number 5
Name: SN
Date: May 9, 2003 at 18:42:02 Pacific
Reply:

Yes, a macro would work. You could do it with merge, but it would be a bit of a pain unless you already have a data source. The macro is stored with the document you create it on, so it is (somewhat) portable.

DDE would only apply if you are going to be merging. Don't worry about it if you have excluded that option.

To create a macro, go to tools-macro-record, enter in a name, and click record. Go through the steps you want the macro to do using only the keyboard (probably something like select sentence, ctrl-c to copy, tab tab tab tab to next field, ctrl-v to paste, tab to next field, ctrl-v to paste again, etc. Then click the stop button. The macro will repeat your keystrokes any time it is run (which you can do either by assigning it to a keystroke such as ctrl-shift-j or by going to tools-macro-play.)

If you need more help, post back.
-SN


0

Related Posts

See More



Response Number 6
Name: Chase
Date: May 14, 2003 at 18:08:34 Pacific
Reply:

Here's one method.
Type up the whole thing. Then at the VERY beginning of the document, Insert, Field, select Ask from under Mail Merge. Type the rest of the statement so it's something like "Ask RepeatName "name?"" RepeatName will be the field name and the prompt, name? You'll be asked for a Name?
Type one and hit OK.
Now switch to code view by pressing alt+f9.
You should see {ask repeatname "name?"/mergefield}. Copy the whole thing and go to the first instance of repeatname and paste. Delete everything inside of the brakets so it says {repeatname}. Copy this and paste it wherever you need to. Switch back to normal view by pressing alt+f9. Now select all, ctrl+A, and then press f9 to update the fields. You'll again be asked "Name?" fill it in an it should appear everywhere you pasted {repeatname}.
Hope it helps


0

Sponsored Link
Ads by Google
Reply to Message Icon






Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Office Software Forum Home


Sponsored links

Ads by Google


Results for: Automating Text for a Word Form

Word Form/Template with Picture www.computing.net/answers/office/word-formtemplate-with-picture/4386.html

sending Word form in Outlook www.computing.net/answers/office/sending-word-form-in-outlook/2489.html

Determining a word file's integrity www.computing.net/answers/office/determining-a-word-files-integrity/6912.html