None not None in Excel COM?

Gonçalo Rodrigues op73418 at mail.telepac.pt
Mon Apr 1 15:21:02 EST 2002


On Mon, 01 Apr 2002 20:30:33 +0100, Gonçalo Rodrigues
<op73418 at mail.telepac.pt> wrote:

>Maybe someone can help me out here.
>
>Im using Excel via Python COM and have already run makepy on its type
>library.
>
>The problem is the following:
>
>Let sheet be a reference to an Excel worksheet and suppose
>sheet.Cells(row, 1) returns None for a given row > 1. The problem is
>that if I do
>
>sheet.Cells(row, 1) == None
>sheet.Cells(row, 1) is None
>
>both return 0. What am I doing wrong?
>
>Thanx for all the help,
>Gonçalo Rodrigues

Am I a STUPID klut or what? I forgot to add .Value to the above, That
was why it was not working.

My apologies, 
Gonçalo Rodrigues



More information about the Python-list mailing list