|
原帖由 wjhere 于 2009-3-16 06:52 发表
二是对于Tag以及Click事件,请使用SELECT CASE,不太明白版主的意思,能否具体说一下“对于Tag以及Click事件,请使用SELECT CASE”具体使用?
请参考:
Private Sub WBCMD_0_Click(ByVal Ctrl As Office.CommandBarButton, CancelDefault As Boolean)
Call myClick(Ctrl.Tag)
End Sub
Private Sub WBCMD_1_Click(ByVal Ctrl As Office.CommandBarButton, CancelDefault As Boolean)
Call myClick(Ctrl.Tag)
End Sub
Private Sub WBCMD_2_Click(ByVal Ctrl As Office.CommandBarButton, CancelDefault As Boolean)
Call myClick(Ctrl.Tag)
End Sub
Private Sub WBCMD_3_Click(ByVal Ctrl As Office.CommandBarButton, CancelDefault As Boolean)
Call myClick(Ctrl.Tag)
End Sub
Private Sub WBCMD_4_Click(ByVal Ctrl As Office.CommandBarButton, CancelDefault As Boolean)
Call myClick(Ctrl.Tag)
End Sub
Private Sub WBCMD_5_Click(ByVal Ctrl As Office.CommandBarButton, CancelDefault As Boolean)
Call myClick(Ctrl.Tag)
End Sub
Public Sub myClick(strTag As String)
Dim myCaptions() As Variant
myCaptions = Array("ºº×Ö×¢Òô...", "¶àÒôУ¶Ô...", "ɾ³ýÉùµ÷", "È¥×ÖÁôÒô", "´Ê¿âÕûÀí", "¹ØÓÚ" & myMsgTitle & "...")
Select Case strTag
Case myCaptions(0)
frm_PhoneticGuide.Show 1
Case myCaptions(1)
Call myCheckDYZ
Case myCaptions(2)
Call CleanPySd
Case myCaptions(3)
Call DelHanZi
Case myCaptions(4)
Call OpenPyTxtLib
Case myCaptions(5)
frm_About_WDPY.Show 1
End Select
End Sub |
|