Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

UserForm Listbox Trouble

Status
Not open for further replies.

derekpax

Technical User
Sep 12, 2005
3
US
I have a UserForm where a person's name is selected and data is entered and stored in a database.

I want the UserForm to pre-load the data if the data has already been entered for a particular person.

After the name and corresponding data is found, I've been using:

ComboBox1.Value = ActiveCell.Value
TextBox1.Value = ActiveCell.Value

For ListBoxes I get the following error: "Could not set the Value property. Invalid property value."

The ListBox is not a multi-select ListBox

Any help would be appreciated
 
You should be using the AddItem method, e.g.:
ListBox1.AddItem (ActiveCell.Value)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top