Charts in existing excel -sheets dissapear
Created originally on Bitbucket by Anonymous
I'm quiet new to the programming bussiness, so If my question is stupid, please excuse.
I tried want to use the code stated below. When I excecute it, all existing Excel charts in the file and all formulas are lost. Is this normal?
Best regards
Roman
#!python
from openpyxl.cell import get_column_letter
from openpyxl import load_workbook
filename = 'Example.xlsx'
workbook = load_workbook(filename)
sheet = workbook.get_sheet_by_name(name = 'Sheetname')
workbook.save(filename)