Dim
Input
Do
Input = InputBox(
"请输入运行的程序,提示:12356"
)
If
int(len(Input))>6 or int(len(Input))<=0
Else
For
a=1 to len(Input)
if int(Mid(Input, a, 1))=1
call q1()
ElseIf
int(Mid(Input, a, 1))=2
call q2()
ElseIf
int(Mid(Input, a, 1))=3
call q3()
ElseIf
int(Mid(Input, a, 1))=4
call q4()
ElseIf
int(Mid(Input, a, 1))=5
call q5()
ElseIf
int(Mid(Input, a, 1))=6
call q6()
End
If
Next
Exit
Do
End
If
Loop
Sub
q1()
MessageBox
"运行q1"
End
Sub
Sub
q2()
MessageBox
"运行q2"
End
Sub
Sub
q3()
MessageBox
"运行q3"
End
Sub
Sub
q4()
MessageBox
"运行q4"
End
Sub
Sub
q5()
MessageBox
"运行q5"
End
Sub
Sub
q6()
MessageBox
"运行q6"
End
Sub