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?
They both exist at that location.
But are they zip files? – Skillzipfile
library. – Chainey