need help with win32com

kyosohma at gmail.com kyosohma at gmail.com
Mon Jul 2 15:18:08 EDT 2007


On Jul 2, 11:38 am, Thomas <ryus... at gmail.com> wrote:
> I want to be able to access an excel file and extract the code from
> the macro that is in the file.  How can I do this?
>
> --
> ~Thomas~

You should be able to use PythonWin and the makepy utility to get
handles to the Excel object. See the following article:

http://www.oreilly.com/catalog/pythonwin32/chapter/ch12.html

I also found an article on how to use Python as the scripting language
in Excel:

http://www.velocityreviews.com/forums/t319222-re-python-in-excel.html

Mike




More information about the Python-list mailing list