Is this possible on a Mac? I was told that it wasn't possible since I
need VBA. Not sure how to make calls from a combo box to other
macros. Thanks for any help.
You can certainly use VBA with MacXL. The Combo box needs to be from the
Forms toolbar, since Macs don't support ActiveX controls.
Here's one way:
Create a combobox from the Forms toolbar, named Dropdown1.
Name a range of values for the dropdown, say, "srce_rng", and assign it
to the Combobox by CTRL-clicking Dropdown1 and selecting Format
Control...
In the Control tab of the Format dialog, enter srce_rng in the Input
Values textbox. Click OK.
Dropdown1's Value property will be an index into srce_rng.
You can access the chosen item by referencing the input values range.
Assign a macro something like this to the combobox (CTRL-click the
combobox and choose Assign macro):
Public Sub Dropdown_Change()
Dim db As DropDown
Set db = ActiveSheet.DropDowns(Application.Caller)
With db
MsgBox Range(.ListFillRange)(.ListIndex)
End With
End Sub