Get all the VBA macros of a workbook by JavaScript API for Excel

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-25 05:09:53

问题


In VBA, we could use for example Wb.VBProject.VBComponents to fetch all the VBA macros of a workbook Wb.

Does anyone know if JavaScript API for Excel provides any object or function to access that?


回答1:


No, you cannot get the VBA macros out of the workbook using JS APIs.

Out of curiosity, why would you want to do it? I.e., what would be the pitch you'd make for having us include this API?

~ Michael Zlatkovsky, developer on Office Extensibility team, MSFT




回答2:


I think this github project is what you're looking for:

https://github.com/vbaidiot/Ariawase/blob/master/vbac.wsf



来源:https://stackoverflow.com/questions/37126194/get-all-the-vba-macros-of-a-workbook-by-javascript-api-for-excel

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