Private Sub 設定引用項目() '遺漏項存在時用手動刪除,用手動存檔後重新執行程式.
Dim E
On Error Resume Next
With ThisWorkbook.VBProject
For Each E In .References
Debug.Print E.Name
Next
End With
If Err <> 0 Then
Application.CommandBars.FindControl(ID:=1561).Execute
Application.SendKeys "%T"
Application.SendKeys "R"
End
End If
End Sub作者: GBKEE 時間: 2013-5-21 17:38