I had intended to do this using the code in the answer here, in the last block of code. However i get an error in the line for cell in ws.iter_rows(range_string=range_expr):
saying that "Worksheet object has no attribute iter_rows". Any idea what I'm doing wrong here?
Asked
Active
Viewed 4,408 times
2

Community
- 1
- 1

zakparks31191
- 919
- 2
- 21
- 42
-
did you check to see that you had the most updated version of openpyxl? – Jeff Tratner Jun 20 '12 at 23:09
1 Answers
5
all i needed was to change the workbook declaration to the following: wb = load_workbook('path/doc.xls', use_iterators=True)
, adding in the use_iterators paramater. Simple issue, simple solution :)

zakparks31191
- 919
- 2
- 21
- 42