A Microsoft Office (Excel, Word) forum. OfficeFrustration

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.

Go Back   Home » OfficeFrustration forum » Microsoft Word » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Allowing user to enter value for listbox



 
 
Thread Tools Display Modes
  #1  
Old June 26th, 2004, 08:01 AM
Alcide
external usenet poster
 
Posts: n/a
Default 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  
Old June 26th, 2004, 09:59 AM
Doug Robbins - Word MVP
external usenet poster
 
Posts: n/a
Default 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  
Old June 29th, 2004, 05:06 PM
Chad DeMeyer
external usenet poster
 
Posts: n/a
Default 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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

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


All times are GMT +1. The time now is 12:14 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.