Jacob : calling vb function in Excel file without invoking “Open” statement

只谈情不闲聊 提交于 2019-12-06 09:35:02

there is no way to execute a VBA function in an Excel workbook without opening the file...

Of course, you can prevent the AUto_open macro running by disabling events on the Excel Application object.

In Excel VBA we do this like so:

Application.enableevents=false

(frequently in conjunction with other settings like ScreenUpdating and DisplayAlerts)

in Java maybe you use:

excel.setProperty("EnableEvents", new Variant(false));

I hope that pointers you in the right direction (lol, boom boom !)

Philip

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!