Trying to open xlsm file using python
Below is the code :
import libraries
import openpyxl
from openpyxl import load_workbook
from openpyxl import Workbook
from openpyxl.styles import colors
from openpyxl.styles import Color, PatternFill, Font, Border
#path of the source sheet
path = "C:\DATA\PYTHON\Practise\SysTSAutSW300PFCRebuildDemo.xlsm"
wb1 = load_workbook(path)
sheet = wb1.get_sheet_by_name('PFC_Rebuild')
celldata = sheet['L33']
print celldata
It gives the below error :
Warning (from warnings module): File "C:\Python27\lib\site-packages\openpyxl\worksheet\header_footer.py", line 49 warn("""Cannot parse header or footer so it will be ignored""") UserWarning: Cannot parse header or footer so it will be ignored
openpyxl
lacks support for some of the features of the file you are trying to open. Whether that matters or not depends on what you are trying to do and whether you consider headers and footers important. Remember,openpyxl
is a volunteer open-source project. The only software that can be guaranteed to do everything that Excel does is Excel itself. – Wicklundopenpyxl
project. – Wicklund