win32com question

Matthew Miller matthewm at zebrasoft.co.nz
Wed Jun 27 23:18:07 EDT 2001


hi,

i'm trying to figure out how to use the win32com interface. i haven't
yet figured out how to 'phrase' optional arguments within a python
expression. given something in vba like:-

Workbooks.Open "spam.xls", ReadOnly:=true, Password:="password"

how do you phrase this in python/win32. i got this far

xlapp=win32com.client.Dispatch("Excel.Application")
xlapp.Workbooks.Open("spam.xls")

but can't figure out how to pass in the named args for the required
functions .
any help would be great.
Thanks...
--
Matthew Miller
Zebra Software Ltd.

E-mail: matthewm at zebrasoft.co.nz
Ph: 03-3848990
FAX: 03-3842397
Mobile: 025-2920625





More information about the Python-list mailing list