"jv" <julie_vazquez@hotmail.com> wrote in
news:1119371750.804530.22750@g49g2000cwa.googlegro ups.com:
[color=blue]
> You will have to iterate through the listbox's ItemsSelected
> collection to get each of the selected issue categories.
>
> Sample code:
> Dim varItm As Variant, strIssueCategory as string
> For Each varItm In lstIssueCategory.ItemsSelected
> strIssueCategory = strIssueCategory .ItemData(varItm)
> 'do something
> Next varItm[/color]
That needs to be changed to one of these two versions in order to
work:
Dim varItm As Variant, strIssueCategory as string
For Each varItm In lstIssueCategory.ItemsSelected
strIssueCategory = lstIssueCategory.ItemData(varItm)
'do something with strIssueCategory
Next varItm
Dim varItm As Variant, strIssueCategory as string
With lstIssueCategory
For Each varItm In .ItemsSelected
strIssueCategory = .ItemData(varItm)
'do something with strIssueCategory
Next varItm
End With
--
David W. Fenton
http://www.bway.net/~dfenton
dfenton at bway dot net
http://www.bway.net/~dfassoc