python openpyxl excel file reading error

故事扮演 提交于 2019-12-12 01:15:41

问题


I am writing a xlsm(macro enabled excel) file with openpyxl.load_workbook. but sometimes it is giving the following error

Sample code in script:

from openpyxl import load_workbook
wb =load_workbook(filename = 'F:\Reports\asdf.xlsm')

Error Details

File "C:\Python27\lib\site-packages\openpyxl\worksheet\header_footer.py", line 209
warn("""Cannot parse header or footer so it will be ignored""")
UserWarning: Cannot parse header or footer so it will be ignored

来源:https://stackoverflow.com/questions/31583401/python-openpyxl-excel-file-reading-error

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!