Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default VB question on ComboBox


Within a Form I have a selection on a pull down menu - However if somon
wants to add another item to the list I do not know how to write th
code for it.

Example :


With cboWho
.AddItem "Client"
.AddItem "Vendor"
.AddItem "Friend"
.AddItem "Family"
End With

Someone wants to come along and add Cient - Bank and Client - Sales. I
there some way that if they type this in the combo box field that i
can update the script on the Form so that that option will be availabl
next time:

With cboWho
.AddItem "Client"
.AddItem "Client - Bank"
.AddItem "Client - Sales"
.AddItem "Vendor"
.AddItem "Friend"
.AddItem "Family"
End Wit

-----------------------------------------------
~~ Message posted from http://www.ExcelTip.com
~~View and post usenet messages directly from http://www.ExcelForum.com

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default VB question on ComboBox

Not unless you store the information some non volatile place (like a
worksheet) and then use your code check if there are additional entries and
then load it/them into the combobox.

--
Regards,
Tom Ogilvy

"neeas" wrote in message
...

Within a Form I have a selection on a pull down menu - However if somone
wants to add another item to the list I do not know how to write the
code for it.

Example :


With cboWho
AddItem "Client"
AddItem "Vendor"
AddItem "Friend"
AddItem "Family"
End With

Someone wants to come along and add Cient - Bank and Client - Sales. Is
there some way that if they type this in the combo box field that it
can update the script on the Form so that that option will be available
next time:

With cboWho
AddItem "Client"
AddItem "Client - Bank"
AddItem "Client - Sales"
AddItem "Vendor"
AddItem "Friend"
AddItem "Family"
End With


------------------------------------------------
~~ Message posted from http://www.ExcelTip.com/
~~View and post usenet messages directly 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
ComboBox Question jlclyde Excel Discussion (Misc queries) 2 August 27th 09 09:31 PM
another combobox question teepee Excel Discussion (Misc queries) 2 May 13th 07 01:01 AM
ComboBox Question Duncan Edment Excel Worksheet Functions 1 August 1st 06 12:42 PM
combobox Question Greg B Excel Discussion (Misc queries) 2 September 2nd 05 04:22 PM
ComboBox Question Terry Detrie Excel Programming 2 October 18th 03 02:55 PM


All times are GMT +1. The time now is 02:04 AM.

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

About Us

"It's about Microsoft Excel"