[python-win32] Excel2000 and password

Niels Steen Krogh nielssteenkrogh@hotmail.com
Thu, 06 Mar 2003 22:19:10 +0100


I tried this code - maybee you must use the keyword "WriteResPassword" as 
well.

/Niels


from win32com.client import Dispatch
o=Dispatch("Excel.Application") #start excel
o.Workbooks.Open(Filename='c:\\dokumenter\\mappe13.xls',Password="peter",WriteResPassword="peter")





Cand. Polit.
Niels Steen Krogh
Solsortvej 44
2000 F.

Tlf: 3888 8613
>
>Today's Topics:
>
>    1. Excel2000 and password (Tom)
>
>--__--__--
>
>Date: Thu, 6 Mar 2003 06:08:01 -0800 (PST)
>From: Tom <ful_tom@yahoo.com>
>To: python-win32@python.org
>Subject: [python-win32] Excel2000 and password
>
>Hello,
>  I have a problem with opening a password protected
>xls document. When program runs, a Excel dialog prompt
>for password is always displayed.
>   Here is a code:
>self.xlApp =
>win32com.client.Dispatch('Excel.Application')
>self.xlBook = self.xlApp.Workbooks.Open(filename,
>Password="Mypasswd")
>
>What's wrong? A parameter name Password is correct.
>
>Thanks Tomas
>
>
>=====
>ful_tom@yahoo.com
>
>__________________________________________________
>Do you Yahoo!?
>Yahoo! Tax Center - forms, calculators, tips, more
>http://taxes.yahoo.com/


_________________________________________________________________
Få Hotmail på mobilen http://www.msn.dk/mobile