由于bunch of answersgoogle results,我已经解决了这个问题 .

但是,我现在正在为 MS Access 自动执行此过程 . 我已经通过在ThisWorkbook module which runs on the Workbook_BeforeSave event中放置代码在Excel中成功完成了它 .

但是,我无法在MS Access中找到任何模拟 ThisWorkbook .

所以问题是:

How can I execute VBA on the BeforeSave event in Access?

我希望这可以在MS Access中保存或在VBA编辑器中保存 .

谢谢