Is it possible to import and run VBA functions in Python?
For example, let mymodule.bas include the following function:
Function AddTwoNumbers(ByVal Alpha As Variant, ByVal Beta As Variant) As Variant
AddTwoNumbers = (Alpha + Beta)
End Function
Is there an extension I can use to interface to such function using Python? I was thinking of using pywin32 but it is not clear to me whether this only works with vba functions inside a MS Excel spreadsheet.
.basfile. So: "Yes, a standalone VBA file" which is useless unless imported into an office application's VBE.win32 extensionin python. You will have to rewrite your VBA to work in Python though, there will be no copy/paste way of doing this.