Hello,
I have a macro that needs to work on both Windows (Excel 2010) and Macs (Excel 2011), but I'm having problems with the Combo Box.
On Windows the following code works fine:
However on a Mac it doesn't return the selected value to "selMonth" and so as this variable is empty, it displays the msgbox and exits the sub.
Would someone be able to help find a solution as I've been Googling for the past hour with no luck.
Thanks.
I have a macro that needs to work on both Windows (Excel 2010) and Macs (Excel 2011), but I'm having problems with the Combo Box.
On Windows the following code works fine:
Code:
On Error Resume Next
With wsTK.Shapes("month").ControlFormat
selMonth = .List(.Value)
End With
On Error GoTo 0
If selMonth = 0 Then
MsgBox "Please select a month from the drop-down box"
Exit Sub
End If
However on a Mac it doesn't return the selected value to "selMonth" and so as this variable is empty, it displays the msgbox and exits the sub.
Would someone be able to help find a solution as I've been Googling for the past hour with no luck.
Thanks.