from openpyxl import load_workbook path = 'valami.xlsx' wb = load_workbook(path) print(wb.sheetnames) wb.save(path)