ClaudeWalker
asked on
reference comobobox thru vba in Excel
I am trying to access a combobox value through vba. However my code is not working.
The code is in a module so I figured I'd have to specify a sheet and I'd be okay.
Sub cboFight1_Change()
Dim curVal As String
curVal = ActiveSheet.cboFight1.Valu e
MsgBox curVal
End Sub
I get an object doesn't support that property or method.
Any ideas,
JOe K.
The code is in a module so I figured I'd have to specify a sheet and I'd be okay.
Sub cboFight1_Change()
Dim curVal As String
curVal = ActiveSheet.cboFight1.Valu
MsgBox curVal
End Sub
I get an object doesn't support that property or method.
Any ideas,
JOe K.
curVAL= ActiveSheet.Shapes("cboFig ht1").Valu e
ASKER
ActiveSheet.Shapes("cboFig ht1").Valu e
still gives me that error
still gives me that error
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
curVal = ActiveSheet.DropDowns(Appl ication.Ca ller).List (ActiveShe et.DropDow ns(Applica tion.Calle r).Value)
WORKED!!!!
That seems way overly complicated though.
WORKED!!!!
That seems way overly complicated though.