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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Adding multiple combo boxes to worksheet

Status
Not open for further replies.

denko

Programmer
May 17, 2001
70
US
Is there way to add through the vba multiple combo boxes ( as many as there are rows, more than 500) to a worksheet?
 
Hi, denko,

Why would you want to add that many?

ONE IS ENOUGH!

Here's the way to do it.

1. Add ONE ComboBox to your sheet.

2. Whenever the user selects an appropriate cell, using the Worksheet_SelectionChange event, make the ComboBox visible and assign the appropriate List to it.

3. Code the ComboBox_Click Event to be context sensative.

4. Either when the user seletes from the ComboBox OR if the user selects another cell, assign False to the Visible property.

This way you only have two procedures to code.

Hope this helps :) Skip,
metzgsk@voughtaircraft.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top