PC Review


Reply
Thread Tools Rate Thread

Choosing multiple items in a dropdown menu

 
 
shumwaymeister@gmail.com
Guest
Posts: n/a
 
      6th Nov 2006
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 With Quote
 
 
 
 
Mike Fogleman
Guest
Posts: n/a
 
      7th Nov 2006
See the VB Help on MultiSelect properties.

Mike F
<(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>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 With Quote
 
shumwaymeister@gmail.com
Guest
Posts: n/a
 
      7th Nov 2006
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
> <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> >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 With Quote
 
Bob Phillips
Guest
Posts: n/a
 
      7th Nov 2006
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)

<(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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
> > <(E-Mail Removed)> wrote in message
> > news:(E-Mail Removed)...
> > >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 With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Choosing multiple items in a drop down list =?Utf-8?B?U2hhZA==?= Microsoft Excel Misc 9 7th Jul 2008 06:38 PM
Choosing Multiple items from Data Validation Lists Alex Microsoft Excel Programming 2 29th Apr 2008 02:39 PM
How to show dropdown list of menu items just like click on Parent menu by writing code. Sakharam Phapale Microsoft VB .NET 1 8th Jan 2005 12:39 PM
How to show dropdown list of menu items just like click on Parent menu by writing code Sakharam Phapale Microsoft C# .NET 1 7th Jan 2005 03:47 PM
choosing multiple items from a combo/field list box jim jackle Microsoft Access Form Coding 2 19th Apr 2004 03:43 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:47 PM.