is there a way to make a drop down with a set of programed insert

B

Butkus

I would like to create a drop down in a standard letter with program
responces to just click in to fill in a letter real quick if it is possible
 
A

alborg

Hi Butkus:

After you place your dropdown onto your letter, do the following-

1) View-> Toolbars-> "Visual Basic"
2) Right click on your project (viewed in the Project Window) and select
Insert-> Module
3) In the module workspace for "Module1" (or whatever you call it), put in a
sub routine such as-

Sub SelectLetter()
Dim ffld As Word.FormField, xx As String
Set ffld = ActiveDocument.FormFields(1)
Select Case ffld.Result
Case "Business"
xx = "Dear Sir: "
Case "Personal"
xx = "Hi Mom! "
'...
'...
End Select
ActiveDocument.Bookmarks("bkTest").Range.Text = xx
End Sub

4) Add in a bookmark where you want your letter/paragraph to go. We'll call
it "bkTest" as referenced above.
5) Now get out of the Visual Basic Interface and right click on your
dropdown item and select "Properties".
6) Click on "Run Macro on..." area, under "Exit" and select the
"SelectLetter" macro from the list.
7) Click on the "Drop-down item:" area and add "Business"-> Add>>, then
"Personal"-> Add>>
8) Press "OK".
9) Test your app... remember to lock your form!

Cheers,
Al
 

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