Reputation: 5540
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?
Upvotes: 0
Views: 572
Reputation: 8670
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
Upvotes: 0
Reputation: 9461
I think this github project is what you're looking for:
https://github.com/vbaidiot/Ariawase/blob/master/vbac.wsf
Upvotes: 0