Harry Flashman
Active Member
- Joined
- May 1, 2011
- Messages
- 361
I have a userform which contains a ListBox called lbPivotFields_Selected.
How do I assign this to an object variable of the ListBox type (as opposed to just a generic Object)?
I tried this
But I get a Type Mismatch error message.
Can anyone see where I am going wrong, please. I would rather use the ListBox type because then I get intellisense. Or is this not possible?
Any assistance would be greatly appreciated.
How do I assign this to an object variable of the ListBox type (as opposed to just a generic Object)?
I tried this
Code:
Dim lb As ListBox
Set lb = lbPivotFields_Selected
But I get a Type Mismatch error message.
Can anyone see where I am going wrong, please. I would rather use the ListBox type because then I get intellisense. Or is this not possible?
Any assistance would be greatly appreciated.