If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
Allowing user to enter value for listbox
Hello,
I am messing around with listboxes in Word 200. Can take a listbox from the Form toolbar and set it so that the user can enter their own value, basically overriding the values provided by the list box. Thanks in advance. |
#2
|
|||
|
|||
Allowing user to enter value for listbox
That would be a "Dropdown" formfield that you are talking about.
While you can run a macro like the following on exit from a textbox formfield to add what was entered into that formfield to the list in the dropdown formfield, you must be aware that every time the user exits the textbox formfield, whatever is in that formfield will be added to the list: and that may cause you a problem. ActiveDocument.FormFields("DropDown1").DropDown.Li stEntries.Add ActiveDocument.FormFields("Text1").Result -- Please post any further questions or followup to the newsgroups for the benefit of others who may be interested. Unsolicited questions forwarded directly to me will only be answered on a paid consulting basis. Hope this helps Doug Robbins - Word MVP "Alcide" wrote in message ... Hello, I am messing around with listboxes in Word 200. Can take a listbox from the Form toolbar and set it so that the user can enter their own value, basically overriding the values provided by the list box. Thanks in advance. |
#3
|
|||
|
|||
Allowing user to enter value for listbox
Another approach that I have employed at times is to include an entry in the
dropdown formfield called "Other". When the user selects that option and exits the dropdown, the exit macro displays an InputBox to prompt the user for a new entry, then adds it as an option in the dropdown field, and makes it the selected option. Regards, Chad DeMeyer "Doug Robbins - Word MVP" wrote in message ... That would be a "Dropdown" formfield that you are talking about. While you can run a macro like the following on exit from a textbox formfield to add what was entered into that formfield to the list in the dropdown formfield, you must be aware that every time the user exits the textbox formfield, whatever is in that formfield will be added to the list: and that may cause you a problem. ActiveDocument.FormFields("DropDown1").DropDown.Li stEntries.Add ActiveDocument.FormFields("Text1").Result -- Please post any further questions or followup to the newsgroups for the benefit of others who may be interested. Unsolicited questions forwarded directly to me will only be answered on a paid consulting basis. Hope this helps Doug Robbins - Word MVP "Alcide" wrote in message ... Hello, I am messing around with listboxes in Word 200. Can take a listbox from the Form toolbar and set it so that the user can enter their own value, basically overriding the values provided by the list box. Thanks in advance. |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Show all dates if user does not enter a date range | Sierras | Using Forms | 4 | June 22nd, 2004 03:45 PM |
New User needs to Import old Outlook Express emails and addresses | DougFromSydney | Contacts | 1 | June 17th, 2004 05:32 PM |
Two versions again-language issue | Otto | Setup, Installing & Configuration | 3 | May 28th, 2004 04:57 AM |
Need a document that pops up a dialog box for user to enter info to merge | Bomber | Mailmerge | 6 | May 12th, 2004 01:45 AM |
How to direct user to enter certain cells from drop down list? | courtesio99 | Worksheet Functions | 0 | December 9th, 2003 04:47 AM |