Hi again
Solved the issue I had..
The problem was quite small but yet for me very easy to miss..
I use an english version of Excel at work, and a danish version at home..
In english it's spelled "MACRO" but in danish it's spelled "MAKRO"
So with minor adjustments, using checkboxes and not comboboxes, below code works perfect for me..
Sub OnExecute()
If UserForm1.OptionButton1.Value = True Then
If UserForm1.CheckBox1.Value = True Then
Call Makro1
End If
If UserForm1.CheckBox2.Value = True Then
Call Makro2
End If
If UserForm1.CheckBox3.Value = True Then
Call Makro3
End If
If UserForm1.CheckBox4.Value = True Then
Call Makro4
End If
If UserForm1.CheckBox5.Value = True Then
Call Makro5
End If
If UserForm1.CheckBox6.Value = True Then
Call Makro6
End If
'etc
'etc
Else
If UserForm1.CheckBox1.Value = True Then
Call Makro7
End If
If UserForm1.CheckBox2.Value = True Then
Call Makro8
End If
If UserForm1.CheckBox3.Value = True Then
Call Makro9
End If
If UserForm1.CheckBox4.Value = True Then
Call Makro10
End If
If UserForm1.CheckBox5.Value = True Then
Call Makro11
End If
If UserForm1.CheckBox6.Value = True Then
Call Makro12
End If
'etc
'etc
End If
End Sub
Bookmarks