I want select a sub routine based on the name of the sub routine that is given. it may be hard to explain what i mean so i'll write the code out demonstrating the concept i'm trying:
-------------------------------------------------
Private Sub SelectSub_Click()
Dim selectedSub as SubRoutine (what type??)
selectedSub = inputbox("Enter the sub routine")
Call selectedSub()
end sub
Sub FirstSub()
msgbox "You typed FirstSub"
End Sub
Sub SecondSub()
msgbox "YOu typed SecondSub"
end sub
--------------------------------------------------
this is obviously not the way i want to use this concept, but this is an easy demonstration.
Thanks
-------------------------------------------------
Private Sub SelectSub_Click()
Dim selectedSub as SubRoutine (what type??)
selectedSub = inputbox("Enter the sub routine")
Call selectedSub()
end sub
Sub FirstSub()
msgbox "You typed FirstSub"
End Sub
Sub SecondSub()
msgbox "YOu typed SecondSub"
end sub
--------------------------------------------------
this is obviously not the way i want to use this concept, but this is an easy demonstration.
Thanks