I want to assign a ComboBox
control to a class member of ComboBox
type. This control is in a group on a worksheet.
The problem is through GroupItems
property, I can only get a Shape
object, not a ComboBox
. So when assigning, it alerts "type dismatch".
If the control was not in a group, I could get an OLEObject
object through OLEObjects
property, and then use Object
property to bypass the type dismatch. But what about now?