Use macros in Excel via win32com

Harald Massa cpl.19.ghum at spamgourmet.com
Sun Dec 19 05:06:37 EST 2004


chris,

> I'm creating an excel document dynamically from scratch using Python
> and the win32com module.  All is well, but now I need to add a macro to
> the spreadsheet and run it (to enable some sorting features in the
> spreadsheet).  

I recommend to create the excel document not from scratch but from a 
template.

 I learned from experience that it is speadier to have all the static parts 
allready prepared - and especially diagrams and macros are MUCH easier to 
handle if allready in the programm

Harald



More information about the Python-list mailing list