May be this question is very common but right now i am very much stuck into it. I have made a script that will read a .xlsx excel file and will plot a graph on the basis of some data in it.
Now i have a .xlsm file.I want to convert this .xlsm file to .xlsx file so that i can use the same script with this file because the content of both the file are same.I have tried converting it using openpyxl but after converting it to .xlsx the script is giving wrong result for it.But when i am manually converting .xlsm to .xlsx format then the script is working fine.
the code that i am using for converting .xlsm to .xlsx is-
from openpyxl import Workbook
from openpyxl import load_workbook
wb = load_workbook('Excel.xlsm',read_only=False ,keep_vba=False)
ws = wb['K0 Reg Patch Util']
wb.save('Excel.xlsx')
can somebody please point me how to convert .xlsm file to .xlsx file.It would be a great help.