L
LisaB
I want to pass the name of a list box on my form to a function. How do I
make the following work using the variable name??
------------
Public Sub MatchAll (listName as string)
Dim Selection as Variant
Dim Item as string
Dim txtListName as string
txtListName = "lst" + listName
....
For each selection in txtListName.ItemsSelected
Item = txtListName.ItemData(Selection)
....
---------------
make the following work using the variable name??
------------
Public Sub MatchAll (listName as string)
Dim Selection as Variant
Dim Item as string
Dim txtListName as string
txtListName = "lst" + listName
....
For each selection in txtListName.ItemsSelected
Item = txtListName.ItemData(Selection)
....
---------------