Код: Выделить всё
i=4
for column in sheet.iter_cols(min_col=5):
i+=1
name=column[0].value
if name not in names_of_employees:
sheet.delete_cols(i, amount=1)
Подробнее здесь: https://stackoverflow.com/questions/786 ... xcel-sheet
Код: Выделить всё
i=4
for column in sheet.iter_cols(min_col=5):
i+=1
name=column[0].value
if name not in names_of_employees:
sheet.delete_cols(i, amount=1)