Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 14
Default Choosing multiple items in a dropdown menu

I am putting together a macro - which may require more than one entry
from a user.

Is there anyway to grab multiple (more than one) entry from the
pulldown menu?

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,092
Default Choosing multiple items in a dropdown menu

See the VB Help on MultiSelect properties.

Mike F
wrote in message
ups.com...
I am putting together a macro - which may require more than one entry
from a user.

Is there anyway to grab multiple (more than one) entry from the
pulldown menu?



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 14
Default Choosing multiple items in a dropdown menu

thanks...multiselect seems to do the trick.

However, is there anyway to actually count the number of items
selected?

The .listcount property returns the total number of elements in the
list, as opposed to the number of elements that the user has selected.

I haven't quite worked out how to count the number of elements selected


Mike Fogleman wrote:
See the VB Help on MultiSelect properties.

Mike F
wrote in message
ups.com...
I am putting together a macro - which may require more than one entry
from a user.

Is there anyway to grab multiple (more than one) entry from the
pulldown menu?


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,593
Default Choosing multiple items in a dropdown menu

With Me.ListBox1
For i = 0 To .ListCount - 1
If .Selected(i) Then
cnt = cnt + 1
End If
Next i
End With

Msgbox cnt



--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

wrote in message
oups.com...
thanks...multiselect seems to do the trick.

However, is there anyway to actually count the number of items
selected?

The .listcount property returns the total number of elements in the
list, as opposed to the number of elements that the user has selected.

I haven't quite worked out how to count the number of elements selected


Mike Fogleman wrote:
See the VB Help on MultiSelect properties.

Mike F
wrote in message
ups.com...
I am putting together a macro - which may require more than one entry
from a user.

Is there anyway to grab multiple (more than one) entry from the
pulldown menu?




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
Change font on dropdown menu items Johanna Gronlund Excel Discussion (Misc queries) 1 February 1st 10 02:13 PM
Choosing multiple items in a drop down list Shad Excel Discussion (Misc queries) 9 July 7th 08 06:38 PM
select multiple items from a dropdown list Rebecca1 Excel Worksheet Functions 0 July 17th 06 08:47 PM
Reference Dropdown Menu Items in Macro FuadsCurse Excel Programming 1 May 3rd 05 03:24 PM
How Do I Reference Individual Dropdown Menu Items in VBA? FuadsCurse Excel Programming 3 May 3rd 05 02:41 PM


All times are GMT +1. The time now is 08:23 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"