Firstly thanks for willing to answer my question.
I have a list include [12A, 23B, 34C, 45D, ...]
, there will be 500 team names in the list, the string teamloop
keeps changing every time running the loop of creating a sheet.
Is there any way to use a loop to create new sheets, just like:
sheet1 = book.add_sheet(teamloop, cell_overwrite_ok=True)
sheet2 = book.add_sheet(teamloop, cell_overwrite_ok=True)
sheet3 = book.add_sheet(teamloop, cell_overwrite_ok=True)
sheet4 = book.add_sheet(teamloop, cell_overwrite_ok=True)
sheet5 ...
...
This is the loop: ↓
while number < 4:
teamloop = list1[number]
sheet2 = book.add_sheet(teamloop, cell_overwrite_ok=True)
number += 1
So basically, the question is how to increase the number after sheet
in a loop.
Thanks!