A
Alex
Hello,
I am trying to hook the OnAction of a ControlSplitDropdown button.
Code:
Dim ctl As CommandBarComboBox
For Each ctl In CommandBars.FindControls(Type:=msoControlSplitDropdown, id:=128)
ctl.OnAction = "SplitAction"
Next
and:
Sub SplitAction()
MsgBox "hi"
End Sub
Unfortunately, this gives me Run-time error '438' (Object doesn't support this property or method.)
What am I doing wrong?
Best wishes,
Alex.
I am trying to hook the OnAction of a ControlSplitDropdown button.
Code:
Dim ctl As CommandBarComboBox
For Each ctl In CommandBars.FindControls(Type:=msoControlSplitDropdown, id:=128)
ctl.OnAction = "SplitAction"
Next
and:
Sub SplitAction()
MsgBox "hi"
End Sub
Unfortunately, this gives me Run-time error '438' (Object doesn't support this property or method.)
What am I doing wrong?
Best wishes,
Alex.