Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
>>> from openpyxl import load_workbook
>>> wb = load_workbook('callsheet.xlsx')
>>> wb.get_sheet_names()
>>> ws = wb.get_active_sheet()
>>> ws.title
>>> print "first row has {} cells".format(len(next(ws.rows)))
first row has 12 cells
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment