好,请你看看,我只是在测试。请你指正。 Public Sub Myf(Doc As Object) If MsgBox("HAHA", vbOKCancel) = vbOK Then End IfEnd Sub Private Sub CommandButton1_Click() Myf (ThisDocument) End Sub
Public Sub Myf(Doc As Object) If MsgBox("HAHA", vbOKCancel) = vbOK Then End If End Sub Private Sub CommandButton1_Click() Call Myf (ThisDocument) End Sub
Public Sub Myf(Doc As Object)
If MsgBox("HAHA", vbOKCancel) = vbOK Then
End IfEnd Sub
Private Sub CommandButton1_Click()
Myf (ThisDocument)
End Sub
If MsgBox("HAHA", vbOKCancel) = vbOK Then
End If End Sub
Private Sub CommandButton1_Click()
Call Myf (ThisDocument)
End Sub