Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default Add items to a combo box and make them available after closing the sheet

Alright, I have a user form that I have been building and it has the
following code within..

Private Sub UserForm_Initialize()
cboName.Value = ""
cboTestNumber.Value = ""
txtScore.Value = ""

With cboTestNumber
.AddItem "Sec+"
.AddItem "270"
.AddItem "290"
.AddItem "291"
.AddItem "293"
.AddItem "294"
.AddItem "298"
.AddItem "299"
End With

cboName.SetFocus

End Sub




Works great.. At least as far as the cboTestNumber since they are
defined with .AddItem. In another sub I have the following lines
that obviously takes the value from the form and adds it to the combo
box.

With cboName
..AddItem cboName.Value
End With

This also works like a treat and dynamically adds values to the 'Name'
combo box as they are entered so they do not have to be re-typed
later.. BUT if I save the sheet, close out and open again (or reset
the Macro) obviously the value in cboName.Value goes away and my combo
box is once again empty...

What I would like to happen is once a name is entered in the first
time, that the name be added to the 'Name' combo box list and be
available when pulling up the sheet the next day.

Is this possible?

Thanks in advance...

David

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
View List Items in Combo Box rl Excel Worksheet Functions 6 May 17th 07 12:53 AM
Closing the current focused sheet Pietro Excel Discussion (Misc queries) 3 February 22nd 07 11:15 PM
How can I make a clickable button to do a Key Combo? BGerman Excel Worksheet Functions 4 August 21st 06 05:01 PM
Cant get a combo box to update without closing form justin Excel Discussion (Misc queries) 0 May 17th 06 09:06 PM
how do I set up time sheet and items bought expense sheet gianni Excel Discussion (Misc queries) 1 December 24th 05 11:10 AM


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

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"