[python-win32] Python as VBA replacement
Eugeni Doljenko
dolzenko at rsu.ru
Wed Oct 6 08:31:55 CEST 2004
> IMO it's possible to write some kind of generic COM server (because of
> Python dynamic nature)suitable to executing arbitrary Python code.
> May be even more tighter integration is possible?
Here it is: C:\Python23\Lib\site-packages\win32com\servers\interp.py
(i had to slightly modify it so Exec function could return values)
But because of unbelievably primitive strings we just can't embed python
code in VBA functions.
It could look so:
"import string\n" _
"x = 'asd'\n" _
huh, it's still better than code in vba!
More information about the Python-win32
mailing list