473,408 Members | 1,874 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,408 software developers and data experts.

Excel vba dropdown/combo box

Can you please help me how to select multiple values from an excel drop down /combobox.

I have a userform with a combobox.

whenever user selects some items from that combobox, and press submit, the value gets filled in a particular cell in another sheet.

Is is possible to select multiple value from that combobox?

thank you.
Aug 10 '10 #1
1 2438
ADezii
8,834 Expert 8TB
  1. In Excel, you can only select Multiple Items from a List Box, NOT a Combo Box.
  2. Assuming you have a List Box named ListBox1 on a UserForm:
    Expand|Select|Wrap|Line Numbers
    1. Dim intCtr
    2.  
    3. For intCtr = 0 To ListBox1.ListCount - 1
    4.   If ListBox1.Selected(intCtr) = True Then
    5.     MsgBox ListBox1.List(intCtr)
    6.   End If
    7. Next intCtr
    will return the Items selected individually.
Aug 10 '10 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Brian Henry | last post by:
Is there anyway to prevent the white box that drops down when you do a combobox dropdown from showing? I am trying to make a custom combobox which requires showing a custom form in its place, but...
1
by: Jason | last post by:
Hi Hi Just wanna find out whether the following is possible: to have a drop down list with populated values, but when the user wants to select a value, he can either type in the first few...
4
by: M P | last post by:
Hi! I have posted this since last week but receive no response. I really need this to run on my system. I use ASP (not .NET) for my web applications. I use IE6 SP1 for all my clients. Since...
1
by: planetthoughtful | last post by:
Hi All, I'm very new to VB.Net, and I've recently downloaded VB 2005 Express. I've managed to connect a dataset to my installation of SQLExpress2005 and I have a form on which I have fields that...
2
by: Spartaco | last post by:
I have a dropdown control into a page and a gridview, both are associated to two SqlDataSource controls, one of them is used to fill the DropDownControl, that is meant to be a filter over the query...
0
by: surf2mail | last post by:
To anyone trying to solve the dropdown combo box navigation in a .net grid problem, here is one solution - hey, it works: We neet to trap key down and up (arrow) events and use them to navigate...
1
by: Matsam | last post by:
Hi, In my ASP page, I hv a combo box that contains numerous items. Eventhough I have sorted it in alphabetical order, users find it difficult for selecting an item. ie, if they want to select an...
4
benchpolo
by: benchpolo | last post by:
I have a dropdown combo "TaxYear" with 2 fields Autonumber, Year. When data are entered in form the value that displays in the dropdown combo are Year, but when i assign the me.year.value to a...
2
by: BobRoyAce | last post by:
How do I programmatically set the value picked in a drop down? So, let's say that I have a dropdown that has three possible values: "Car", "Truck", and "Bicycle". What code would I use to set the...
0
by: Royson Jacob | last post by:
Hi, I want to export grid view data to excel file in windows forms application. I tried one solution but it fails to export combo box type column to excel. Excel file should have combo box, check...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.