i created a class module for 2 of my command buttons...
the button names are cmdAwayEnter and cmdHomeEnter...
i'm trying to run a sub based upon which one they hit...
eg if they hit cmdHomeEnter then i want to run the sub Play01Home
if they hit cmdAwayEnter then i want to run the sub Play01Away
this is what i was trying but guess can't be done this way...any thoughts?
the button names are cmdAwayEnter and cmdHomeEnter...
i'm trying to run a sub based upon which one they hit...
eg if they hit cmdHomeEnter then i want to run the sub Play01Home
if they hit cmdAwayEnter then i want to run the sub Play01Away
this is what i was trying but guess can't be done this way...any thoughts?
Code:
Sub GroupEnter()
vHomeAway = Mid(Main.ActiveControl.Name, 4, 4)
Dim GameType
Call "Play01" & vHomeAway
End Sub