Auto Poputating Address in Word 2003

  • Thread starter Thread starter RC485
  • Start date Start date
R

RC485

I hope someone can help me. I have a word document that has a address field
and I am trying to figure out how to make the address auto populate. I have
created a drop down box for the user to choose the name of the ship to
location but I am stuck at that point. I know there has to be a way to add
the address automatically once the ship to location is selected. Any help
would be greatly appreciated.

Thank you
 
Running the following macro on exit for the Location DropDown FormFeld will
populate a TextInput FormField with the bookmark name of "Address" with the
address corresponding to that location if it has been saved as an autotext
entry with the name of the location.

With ActiveDocument
.FormFields("Address").Result = .AttachedTemplate.AutoTextEntries _
(.FormFields("Location").Result).Value
End WIth


--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP, originally posted via msnews.microsoft.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top