Good morning,
I am having problems when I tried to access to the value of one cell in an excel. I want to access to all the rows of the column number 8. I think I am doing something wrong with the for.
Code:
import openpyxl
filename="./Export_tiempos.xlsx"
wb=openpyxl.load_workbook(filename)
sheet=wb.worksheets[0]
row=2
for row in sheet:
SB=sheet.cell(row,8).value
row+=1
wb.save(filename)
The error is the following: TypeError: '<' not supported between instances of 'tuple' and 'int'
Someone could help me? Thanks in advance.