Use macros in Excel via win32com

Harald Massa cpl.19.ghum at
Sun Dec 19 11:06:37 CET 2004


> 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 

 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


More information about the Python-list mailing list