I guess I have my basic wrong here, can anybody please correct me?
I have an ActiveX control in "home" worksheet. Now, when I code,
This works:
MsgBox (ThisWorkbook.Worksheets("home").quantity.Value)
So does this:
With ThisWorkbook.Worksheets("home")
MsgBox (.quantity.Value)
End With
But this does not:
Dim wh As Worksheet
Set wh = ThisWorkbook.Worksheets("home")
MsgBox (wh.quantity.Value)
Can anybody please explain the difference?