開啟工作簿需要載入 SAPBEX.xla 檔案


將以下程式碼複製到工作簿的 PERSONAL.XLSM 模組中,然後重新整理 −

Private WithEvents App As Application
Private Sub Workbook_Open()
   Set App = Application
End Sub
Try adding below code, in your module:
Private Sub App_WorkbookOpen(ByVal Wb As Workbook)
   MsgBox "New Workbook: " & Wb.Name
End Sub


更新時間:2020 年 2 月 14 日

130 次瀏覽

開啟你的 職業生涯

完成課程即可獲得認證

立即開始
廣告
© . All rights reserved.