I think this will do what you want.
But its kind of weird.
Im not really sure why haha.
Also, you can add more cases, I just did 1.
And I just changed it to Sub instead of Function since it doesnt actually return anything right now.
Public Sub CaseSelect(Case1 As Variant, Macro1 As String, Macro2 As String)
Dim MyCase As Variant
MyCase = 0 ' Just set it as 0 as an example
Select Case MyCase
Case Case1
Application.Run Macro1
Case Else
Application.Run Macro2
End Select
End Sub
Sub MyMainSub()
Application.Run "CaseSelect", 0, "Macro1", "Macro2"
End Sub
Sub Macro1()
MsgBox ("Case1")
End Sub
Sub Macro2()
MsgBox ("Case2")
End Sub
Bookmarks