Can I do this in Word

R

Ryan''s Girl

I am creating a bill of lading for our company and would like a drop down
list to display all the states. Next to the states abbreviations I would like
to have the carrier we would use....example.....
AL - ABF Freight Systems
DE -Ward Trucking
IL - Dayton Freight
ect.
The problem is I only need the name of the trucking company to display not
the state. Can I do this in Word?
 
J

Jay Freedman

Ryan''s Girl said:
I am creating a bill of lading for our company and would like a drop
down list to display all the states. Next to the states abbreviations
I would like to have the carrier we would use....example.....
AL - ABF Freight Systems
DE -Ward Trucking
IL - Dayton Freight
ect.
The problem is I only need the name of the trucking company to
display not the state. Can I do this in Word?

The easiest solution for this is to set up an AutoTextList field. See
http://www.word.mvps.org/FAQs/TblsFldsFms/AutoTextList.htm.

If you're using a protected form with form fields, that won't work. If you
have to include all 50 states, a dropdown form field won't work either,
because it's limited to a maximum of 25 entries. The remaining choice in
that case is to create a userform
(http://www.word.mvps.org/FAQs/Userforms/CreateAUserForm.htm) that contains
a list box, place a text form field in the document to receive the carrier's
name, and set the macro that displays the userform to be the Entrance macro
of the text form field. It's fairly complicated to set up if you don't have
programming experience, but if you need this kind of thing, visit
http://www.microsoft.com/communitie...t.aspx?dg=microsoft.public.word.vba.userforms
for help.

--
Regards,
Jay Freedman
Microsoft Word MVP
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.
 
R

Ryan''s Girl

I have already created a protected form is that were I start or do I have to
create a different template?
 
J

Jay Freedman

You can start with the protected form you already have, and add the userform
to it. It may not be clear unless you've read the article I mentioned, but a
"userform" in Word-speak is a custom dialog that pops up over the document.
The user chooses the state they want and clicks the OK button. The dialog
disappears and the result -- the name of the carrier for that state -- is
put into a form field on the protected form.
 

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

Top