拦截Excel打开文件
有没有办法通过 COM 插件拦截或覆盖 Microsoft Excel 的文件打开命令?我想在 Excel 尝试打开工作簿之前处理该文件,因此 Application_WorkbookOpen 为时已晚。
理想情况下,双击 Excel 文件时也应该触发它。
Is there a way to intercept or override Microsoft excel's File open command by an COM Addin? I want to process the file before Excel tries to open the workbook, so Application_WorkbookOpen is too late.
Ideally it should be triggered when an excel file is double-clicked also.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
使用:
它甚至可以在
Application_WorkbookOpen
之前运行。但不确定它对你来说是否足够快。更新:
这可能对您也有帮助。< /a> 自动执行宏的不同方法:
Use:
It works even before
Application_WorkbookOpen
. Not sure if it is fast enough for you though.Update:
This might be helpful for you too. Different ways to auto execute macros: