I have a workbook that I would like to clear a range of values with using OpenPyXI. So far I have the following:
# Import OpenPyXl module. from openpyxl impo
It seems that the library doesn't have a method to clear or set a range directly. So your best chance is probably to clear the value for each cell:
for row in ws['A1:G37']: for cell in row: cell.value = None