[python-win32] getting integer value for worksheet.Cells(row, col).Value
bob gailer
bgailer at gmail.com
Wed Nov 19 18:32:56 CET 2008
Solomon.Zewdie.Altek at zf.com wrote:
> I just tried it ( I did: IntValue = Val(self.worksheet.Cells(row, col).Value))
> Though It seems that the COM server doesn't know Val()... or am i doin something wrong??
> I got the error: "NameError: global name 'Val' is not defined"
Greg offered that for use "... in a Visual Basic module ...".
You are using Val as part of a Python expression, and Python does not
know "Val". Has nothing to do with COM. Try int instead of Val.
--
Bob Gailer
Chapel Hill NC
919-636-4239
More information about the python-win32
mailing list