TLDR: I want to receive the result(to python) from a vba function that I triggered via python. I am able to trigger the vba function.
I am able to trigger a vba function via python. Now, I want to receive the result of that vba function back in that same python program (the one that called the vba function). How do I do it?
Is it even possible?
Currently I am triggering my vba via this function:
xl = win32com.client.Dispatch("Excel.Application")
result = xl.Application.Run("my_vba_function_name", param1)
The reason why I want to trigger a vba function rather that modifying the excel file directly via python is that I want to be able to open and view/edit the file via microsoft excel at the same time.
Thanks
EDIT: I got the result from the other post.