Home |
Search |
Today's Posts |
#1
|
|||
|
|||
Can I have multi-line items in a drop down box?
I'm using Word 2002. I want to have a drop down box in my form, but I want
the items you can choose from to be 2 or 3 lines. For example, I'd like to enter a business name & address for 3 businesses, and have them be in the drop down box, but when selected, show up as a regular 3-line address. |
#2
|
|||
|
|||
You cannot do that, but, if you create an autotext entry for the address of
each company, then run the following macro on exit from the drop down, it will insert the autotext corresponding to the company selected into the formfield Text1: ' Macro created 15-11-97 by Doug Robbins to add the address corresponding to a drop down name ' Set myDrop = ActiveDocument.FormFields("Dropdown1").DropDown Company = myDrop.ListEntries(myDrop.Value).Name Address = ActiveDocument.AttachedTemplate.AutoTextEntries(Co mpany).Value ActiveDocument.FormFields("Text1").Result = Address -- 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 "blue dog" blue wrote in message ... I'm using Word 2002. I want to have a drop down box in my form, but I want the items you can choose from to be 2 or 3 lines. For example, I'd like to enter a business name & address for 3 businesses, and have them be in the drop down box, but when selected, show up as a regular 3-line address. |
#3
|
|||
|
|||
Doug - I'm not following the "macro" instructions.
"Doug Robbins" wrote: You cannot do that, but, if you create an autotext entry for the address of each company, then run the following macro on exit from the drop down, it will insert the autotext corresponding to the company selected into the formfield Text1: ' Macro created 15-11-97 by Doug Robbins to add the address corresponding to a drop down name ' Set myDrop = ActiveDocument.FormFields("Dropdown1").DropDown Company = myDrop.ListEntries(myDrop.Value).Name Address = ActiveDocument.AttachedTemplate.AutoTextEntries(Co mpany).Value ActiveDocument.FormFields("Text1").Result = Address -- 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 "blue dog" blue wrote in message ... I'm using Word 2002. I want to have a drop down box in my form, but I want the items you can choose from to be 2 or 3 lines. For example, I'd like to enter a business name & address for 3 businesses, and have them be in the drop down box, but when selected, show up as a regular 3-line address. |
#4
|
|||
|
|||
See the article "What do I do with macros sent to me by other newsgroup
readers to help me out?" at: http://www.word.mvps.org/FAQs/Macros...eateAMacro.htm and for more information on forms: Please Fill Out This Form Part 1: Create professional looking forms in Word http://www.computorcompanion.com/LPMArticle.asp?ID=22 Part 2: Adding Automation to your Word forms. http://www.computorcompanion.com/LPMArticle.asp?ID=46 Part 3: Learn more VBA (macros) to automate your forms. http://www.computorcompanion.com/LPMArticle.asp?ID=119 Part 4: Use custom dialog boxes in your Word forms http://www.computorcompanion.com/LPMArticle.asp?ID=127 Part 5: Connect your AutoForm to a database to save input time and keep better records! http://www.computorcompanion.com/LPMArticle.asp?ID=136 -- 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 "blue dog" wrote in message ... Doug - I'm not following the "macro" instructions. "Doug Robbins" wrote: You cannot do that, but, if you create an autotext entry for the address of each company, then run the following macro on exit from the drop down, it will insert the autotext corresponding to the company selected into the formfield Text1: ' Macro created 15-11-97 by Doug Robbins to add the address corresponding to a drop down name ' Set myDrop = ActiveDocument.FormFields("Dropdown1").DropDown Company = myDrop.ListEntries(myDrop.Value).Name Address = ActiveDocument.AttachedTemplate.AutoTextEntries(Co mpany).Value ActiveDocument.FormFields("Text1").Result = Address -- 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 "blue dog" blue wrote in message ... I'm using Word 2002. I want to have a drop down box in my form, but I want the items you can choose from to be 2 or 3 lines. For example, I'd like to enter a business name & address for 3 businesses, and have them be in the drop down box, but when selected, show up as a regular 3-line address. |
Reply |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
double window envelope | Page Layout | |||
Multi Marking | New Users | |||
Line break in drop down field | Microsoft Word Help | |||
how do I delete the mail merge items in the tools drop down in Wo. | Tables | |||
Vertical line--leaving line and losing the box | New Users |