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!

how to load item in combo box in excel?

Status
Not open for further replies.

Learnerprog

Programmer
Apr 21, 2004
52
US
Hello all,
I am new to VBA. I am trying to load a list of names that are stored in my excel spread sheet into a combo box on form load. How do I do that? and when I select the name on the drop down list from the combo box. I will only populate the the information belong to that individual on the spreadsheet only. Please guide me? Thank you very much. Joe
 


Hi,

Either you can use the AddItem method or assign the range to the ListFillRange property. I nearly always use NAMED RANGES.

Skip,

[glasses] [red]A palindrome gone wrong?[/red]
A man, a plan, a ROOT canal...
PULLEMALL![tongue]
 

Are you using the FORMS dropdown or the CONTROL TOOLBOX?

Skip,

[glasses] [red]A palindrome gone wrong?[/red]
A man, a plan, a ROOT canal...
PULLEMALL![tongue]
 
how to filter all the data from spreadsheet based on the criteria that is input from the form e.g Name of person?
Thank you very much in advance
 

You did not answer my question.

Skip,

[glasses] [red]A palindrome gone wrong?[/red]
A man, a plan, a ROOT canal...
PULLEMALL![tongue]
 

Enter the sheet range in the ListFillRange like
[tt]
Sheet1!A2:A5
[/tt]
or Name the Range and enter the range name.

How can I rename a table as it changes size faq68-1331

Skip,

[glasses] [red]A palindrome gone wrong?[/red]
A man, a plan, a ROOT canal...
PULLEMALL![tongue]
 
Can anyone help with the filter on the spreadsheet. basically, I need help on how to filter record on the spreadsheet based on input search from a form. The search will be based on First and Last Name. please help. Thanks, CVL
 

Hey joe,

how 'bout explaining SPECIFICLY what you're trying to do, example data et al.

Skip,

[glasses] [red]A palindrome gone wrong?[/red]
A man, a plan, a ROOT canal...
PULLEMALL![tongue]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top