Python in Excel

John J. Lee jjl at
Fri Jul 4 16:56:43 CEST 2003

"Tom Locke" <tom at> writes:

> > >Can I write Excel macros/scripts using Python?
> > >
> > >I mean to actually put Python into an Excel document, not using
> > >Python to access data, for example, from some Excel document.
> These days you can script office with any .NET language, and that includes
> Python:

Or use good old COM.  There's an example of controlling Excel (the
version from Office 2000) in the Python for Windows Extensions (aka
win32all) COM test code.  IIRC, it'll be somewhere like


More information about the Python-list mailing list