I am using Python 2.2.3 with Pywin32-210.win32-py2.2 The following
Python sequence works fine when using the 'late binding' method.
import win32com.client.dynamic
import types
xlApp = win32com.client.Dispatch("Excel.Application")
xlBook = xlApp.Workbooks.Open( 'C:\\TestExcel.xls' )
sheet = xlBook.
I think the problem is with the default value for the keys that aren't
specified.
This works with both early and late binding:
rangeToSort.Sort( Key1=sheet.Columns( 3 ), Order1=1 , Header=1,
Key2=pythoncom.Missing, Key3=pythoncom.Missing )
Roger
__
I ran my test with the 'optional' arguments defined as pythoncom.Missing
and it does work now. Previously my code was working under a very old
Python 1.5.2 where the 'defaultNamedNotOptArg' was defined as
pythoncom.Missing in the .py file generated for the Excel 11.0 Object
Library.
Evidently the
PYTHONPATH and .pth files under Windows XP
No matter what my PYTHONPATH is set to as a Enivorment Variable under Windows
XP, the only time a .pth file is actually being read and used is when I dump it
into my site-packages directory off my install location.
lets say I have the following directo
> PYTHONPATH and .pth files under Windows XP
>
> No matter what my PYTHONPATH is set to as a Enivorment
> Variable under Windows XP, the only time a .pth file is
> actually being read and used is when I dump it into my
> site-packages directory off my install location.
A quick scan of http://docs.