--
You received this message because you are subscribed to the Google Groups "python-excel" group.
To post to this group, send an email to python...@googlegroups.com.
To unsubscribe from this group, send email to python-excel...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/python-excel?hl=en-GB.

Hello Gerard,
Thanx a lot for your help. It is really very kind of u.
I downloaded the xlrd and was able to open the file. But as i started writing the code, i got stuck and had some errors shown up, also tried going through the forum for the desired solution but coudn't find one.
I hereby request you to kindly look into the code and help me in debugging the errors..
import osimport xlrdos.chdir("d://ashii")
wb = xlrd.open_workbook("d:/ashii/ashuu.xls")sheet = wb.sheet_by_index(0)print "sheet has %d rows and %d columns" % (sheet.nrows, sheet.ncols) ## till here everything worked fine as i was able to see the output for this command
col = 4
rows = []
for row in xrange(sheet.nrows):
Hello Gerard,
Thanx a lot for your help. It is really very kind of u.
I downloaded the xlrd and was able to open the file. But as i started writing the code, i got stuck and had some errors shown up, also tried going through the forum for the desired solution but coudn't find one.
I hereby request you to kindly look into the code and help me in debugging the errors..
import osimport xlrdos.chdir("d://ashii")
wb = xlrd.open_workbook("d:/ashii/ashuu.xls")sheet = wb.sheet_by_index(0)print "sheet has %d rows and %d columns" % (sheet.nrows, sheet.ncols) ## till here everything worked fine as i was able to see the output for this command
col = 4rows = []
for row in xrange(sheet.nrows):value = sheet.cell_value(row,col)print row,col, value
But Now i get error sayingTraceback (most recent call last):File "C:\script1", line 13, in <module>value = sheet.cell_value(row,col)File "C:\Python27\lib\site-packages\xlrd\sheet.py", line 263, in cell_valuereturn self._cell_values[rowx][colx]IndexError: list index out of range