corr: win32com: How to use optional parameters?
Ilja Heitlager
news at heitlager.com
Tue Jul 11 08:23:16 EDT 2000
There was a small error in my example:
>
> xl.Worksheets.Add After:=xl.Worksheets.Count
>
should be in VB:
xl.Worksheets.Add After:=xl.Worksheets(xl.Worksheets.Count)
So in Python it becomes:
xl.Worksheets.Add(After=xl.Worksheets(xl.Worksheets.Count))
Which PythonCom sees as the first argument (the Before), argh.
PS I am using Pythoncom Version 1.5.2, build 129
Please guys help me out, I hate to do all my work in VB (if possible ;-)
Ilja
More information about the Python-list
mailing list