Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default ComboBox with an editable function

Does anyone know how to create a list box to allow the user to choos
AND allow the user to enter new data if he/she selects one item fro
the list? For example "other" would allow the user to add an item

--
Message posted from http://www.ExcelForum.com

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,327
Default ComboBox with an editable function

When "other" is clicked, some entry field component of some sort becomes visible, maybe
even modal, and when entry there is complete, this entry gets transferred to the listbox
and selected. It takes several components and some VBA of coding to do since you can't
type into a listbox.

--
HTH. Best wishes Harald
Followup to newsgroup only please.

"bostonlady " wrote in message
...
Does anyone know how to create a list box to allow the user to choose
AND allow the user to enter new data if he/she selects one item from
the list? For example "other" would allow the user to add an item.


---
Message posted from http://www.ExcelForum.com/



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default ComboBox with an editable function

Would you happen to know where I might find a code example to do this?

Thank yo

--
Message posted from http://www.ExcelForum.com

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,327
Default ComboBox with an editable function

This is a quite primitive solution, using Windows' inputbox:

Private Sub ListBox1_Click()
Dim S As String
If ListBox1.Text = "Other" Then
S = InputBox("Enter new item:")
If S < "" Then _
ListBox1.AddItem S, _
ListBox1.ListIndex
End If
End Sub
--
HTH. Best wishes Harald
Followup to newsgroup only please

"bostonlady " skrev i melding
...
Would you happen to know where I might find a code example to do this?

Thank you


---
Message posted from http://www.ExcelForum.com/



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Use match function to add different item in Combobox Leonard Lan Excel Worksheet Functions 2 September 9th 09 06:26 PM
2 questions! Related to combobox and time function. HELP!! Bruno Excel Discussion (Misc queries) 11 September 28th 07 02:33 PM
if it is possible to add a combobox to a self-made function Jean-Paul Viel Excel Programming 1 September 5th 03 07:35 AM
if it is possible to add a combobox to a self-made function . youngman Excel Programming 0 September 4th 03 08:32 AM
Date function and combobox Przemek Wrzesinski Excel Programming 2 July 17th 03 11:41 PM


All times are GMT +1. The time now is 06:29 AM.

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

About Us

"It's about Microsoft Excel"