Sub ttt() MsgBox "hello" End SubSub yyy ttt End Sub
Private Declare Function EbExecuteLine Lib "vba6.dll" (ByVal pStringToExec As Long, ByVal Unknownn1 As Long, ByVal Unknownn2 As Long, ByVal fCheckOnly As Long) As LongSub ttt() MsgBox "hello" End SubSub yyy Const t as string = "ttt" Call EbExecuteLine(StrPtr(t), 0&, 0&, 0&) End Sub
赞同 rainstormmaster(暴风雨 v2.0) 老大Sub ttt() MsgBox "hello" End SubSub yyy() Const t As String = "ttt" CallByName Me, t, VbMethod '这里用什么语句掉用t,来执行ttt过程 End Sub
Sub ttt()
MsgBox "hello"
End SubSub yyy
ttt
End Sub
MsgBox "hello"
End SubSub yyy
Const t as string = "ttt"
Call EbExecuteLine(StrPtr(t), 0&, 0&, 0&)
End Sub
MsgBox "hello"
End SubSub yyy()
Const t As String = "ttt"
CallByName Me, t, VbMethod '这里用什么语句掉用t,来执行ttt过程
End Sub