Another PythonWin Excel question

It's me itsme at yahoo.com
Thu Jan 6 11:44:22 EST 2005


"Marten Bauer" <Marten.Bauer at gmx.net> wrote in message
news:344586F48830bU1 at individual.net...
>
> I did it yesterday like this way and it works well (part of my code):
>
>      wb.Worksheets.Add(Count=nrMonths,After=wb.Worksheets(1))
>

> As I read in MSDN you could not write After="sheet1" instead you must
> use the Object of sheet1 like in my example and it works well in my
> case. The Count=... statement will create n Sheets after the first
worksheet
>

Yes, I learn that as well.  The parameter to After is a Worksheet object.
It appears if you don't specify any parameters, it would add it Before the
current sheet.

Thanks,


>
> By
> Marten





More information about the Python-list mailing list