I'm trying to open both an xlsx file and an xlsm file both give me the same error
badzipfile: file is not a zip file
here is what I'm typing:
import openpyxl
wb=openpyxl.load_workbook('c:\users\me\documents\filename.xlsm', keep_vba=True)
wb2=openpyxl.load_workbook('c:\users\me\documents\filename2.xlsx')
both load_workbook
commands result in the same error. They both exist at that location. why am I getting this error?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…