回復 10#lone_tiger0303
如何用excel檔案B中的commandButton1 -> Run "B!Sheet1.CommandButton1_Click"
去執行excel檔案A中的commandButton1 -> Run "A!Sheet1.CommandButton1_Click"作者: lone_tiger0303 時間: 2011-8-15 17:34
Private Sub CommandButton1_Click()
Application.Calculation = xlCalculationManual '手動計算
Workbooks.Open Filename:="C:\Documents and Settings\k1489.KT_DOMAIN\桌面\李鎮江\02_技師保母\02_技師保母成效_程式.xls" '開檔
Run "02_技師保母成效_程式.xls!Sheets(程式).CommandButton7_Click"
ActiveWorkbook.PrecisionAsDisplayed = False
ActiveSheet.Calculate
End Sub