I am working an an extension for calc and I am wondering if it is possible to run VBA driectly from a Calc or automatically add VBA to a Calc document.
If I can figure it out I would like to have a calc function that popus up a dialog box, in the dialog the user could input. The the addon would be responsible for running the vba and returning the result.
I don’t think vba can execute a string of code like Python’s eval()
function. However, I am wondering if a module can be injected into the document using the API or if a module can be executed that does not live directly in the user or shared folders.
I am fairly certain that it is not possible to run a VBA module outsited the shared or user folders but if it could it would be a simple matter of writing the VBA to the tmp folder and then load/run.
Any thoughts?