Dim InputDo Input = InputBox("请输入运行的程序,提示:12356")If int(len(Input))>6 or int(len(Input))<=0 ElseFor a=1 to len(Input)if int(Mid(Input, a, 1))=1call 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 IfNextExit Do End If LoopSub q1()MessageBox "运行q1"End SubSub q2()MessageBox "运行q2"End SubSub q3()MessageBox "运行q3"End SubSub q4()MessageBox "运行q4"End SubSub q5()MessageBox "运行q5"End SubSub q6()MessageBox "运行q6"End Sub
[16467]
[9210]
[9742]
[16187]
[12624]
[8974]
[15240]
[23406]
[14854]
[23464]

客服
小程序
公众号