rockchalk33
Board Regular
- Joined
- Jan 12, 2016
- Messages
- 111
Hey all,
I have a ListBox with a variable list and the MultiSelect property turned on. I need to the below code to operate through each selected value in the ListBox instead of the current range as defined by o.
I cannot change these variable names due to the sheer size of the program (no ctrl+h is not currently an option)...Below is what I'm ultimately trying to achieve:
Thanks for help!
I have a ListBox with a variable list and the MultiSelect property turned on. I need to the below code to operate through each selected value in the ListBox instead of the current range as defined by o.
Code:
Dim N As Range, o As Range
Set o = Sheets("Sheet3").Range("A2:A3000")
For Each N In o
....
Next N
I cannot change these variable names due to the sheer size of the program (no ctrl+h is not currently an option)...Below is what I'm ultimately trying to achieve:
Code:
Dim N As 'each selected value in' Range
Dim o As Range
Set o = ListBox3.ListCount
For Each N In o
....
Next N
Thanks for help!