View Single Post
  #6   Report Post  
giddne
 
Posts: n/a
Default

Thanks Greg, the link to your site really helped. Got it done. Now can you
come here and enter all this data for me??
Thanks again!!!!!
David

"Greg Maxey" wrote:

David,

Sorry if my instructions were vague.

Your assumption is correct. If you hav elected to use a formfield for the
First name then when you exit that field the REF field { Text1 } will
autopopulated.

See the explanation is section 2 he
http://gregmaxey.mvps.org/Repeating_Data.htm

--
Greg Maxey/Word MVP
See:
http://gregmaxey.mvps.org/word_tips.htm
For some helpful tips using Word.

giddne wrote:
Thanks Greg!! I'm assuming when I type John in the address, it
automatically fills in after "Dear", after I exit the first form
field. Is this correct or do I have to toggle each time? Do I type
Text1 after Dear,in a form field or not? When I CTRL+F9, it places
brackets around "Text1" yet when I select it and toggle field code it
eliminates the box. I can't seem to get it to work. What am I
missing? Should fill in be enabled?

I do appreciate your time and respect your interest.
David

"Greg" wrote:

giddne,

Without a macro you will need two fields for the name. One for the
First and one for the Last.

The formfield that you are using to type the First name has a
bookmark name. Unprotect and double click the field and you will
see it. Lets
call it Text1. Click the option to "calculate on exit"

After Dear, type Text1 select it and press CTRL+F9 then select it,
right click and toggle field code.

If you want to stick with one field for the whole name, then you
could
run someting like the following as an on exit macro to populate a
second field located after Dear:

Sub ProperName()
Dim fullName As String
Dim i As Long
fullName = ActiveDocument.FormFields("Text1").Result
i = InStr(fullName, " ")
ActiveDocument.FormFields("Text2").Result = Left(fullName, i - 1)
End Sub