Question - how to...

T

Todd

Here's the question:

I have a word document that I use in over 50 court districts. The document
is identical the only thing that is different between them is the court name
and address.

So I have 50 documents saved, 1 for each court, my question - since the
document I used is identical between the courts, is there a way to use only
"1" document but build in some kind of pull-down menu that would allow me to
pick what court name and address that I want in the document?

This way instead of sorting through 50 saved documents looking for the court
I need, I could just open 1 document and then pick the court I want.

If anyone knows if this is at possible, it would be very much appreciated.

Thanks,

Todd
 
S

Shauna Kelly

Hi Todd

There are several ways to do this. Here are two. But in any case, you need
to create a template. And when you need to create a new document, do File >
New and select your template.

Option 1 - use 50 AutoTexts.
In your new template, create a style that will hold the name and address of
the courts. Using that style, create 50 AutoTexts, one for each court. You
can then create your drop down list in one of two ways.

For basic info about autotexts, see
Using AutoText
http://www.word.mvps.org/FAQs/Customization/AutoText.htm

You then need to create the drop-down list of those AutoTexts.

You could use an AutoText list in the template. That will put a drop-down
list at the space you specify in the template. See:
How to add pop-up lists to any Word document, so you can click your way
through changes in seconds
http://www.word.mvps.org/FAQs/TblsFldsFms/AutoTextList.htm

And/or you could drag the Autotext button to a toolbar. This will give you a
drop-down list from the toolbar of your 50 courts. To do that, first make
sure your template is open. Now, Tools > Customize. On the Commands tab,
make sure that the "Save in" box refers to your template. Still on the
Commands tab, in the Categories list, choose Insert. In the Commands box,
find the entry that says AutoText with a right-pointing arrow (you do *not*
want the one that says AutoText....). Drag the one with the arrow to a
toolbar.


Option 2 - store the court info in an Excel file, and use that to populate a
VBA user form, and use the selection in that form to add the data to the
list.

As one way to get the data out of the Excel file, see:
Load a ListBox from a Named Range in Excel using DAO
http://www.word.mvps.org/FAQs/InterDev/FillListBoxFromXLDAO.htm

On how to create the user form:
How to create a Userform
http://www.word.mvps.org/FAQs/Userforms/CreateAUserForm.htm

Hope this helps.

Shauna Kelly. Microsoft MVP.
http://www.shaunakelly.com/word
 
C

Charles Kenyon

Answered duplicate post in another newsgroup.
--
Charles Kenyon

Word New User FAQ & Web Directory: http://addbalance.com/word

Intermediate User's Guide to Microsoft Word (supplemented version of
Microsoft's Legal Users' Guide) http://addbalance.com/usersguide




--------- --------- --------- --------- --------- ---------
This message is posted to a newsgroup. Please post replies
and questions to the newsgroup so that others can learn
from my ignorance and your wisdom.
 

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