excel - Modify .xls file with python -


im coding script in python reads excel file, makes change on cell , copy excel file , save it.

for example have example.xls, generate example_copy.xls.

everuthing same, problem is, formulas on sheet gone, when makes copy keeps text want copy formulas too.

i'm using xlutils this. part of code:

def write_frecuencias(self):     book = xlrd.open_workbook('examen.xls', formatting_info=true)     book_copy = copy(book)     sheet = book_copy.get_sheet(0)     frecuencies = self.get_frecuencias()     row = 1     f in frecuencies:         sheet.write(row, 1, str(f[0]))         row += 1     book_copy.save('examen.xls') 


Comments

Popular posts from this blog

database - VFP Grid + SQL server 2008 - grid not showing correctly -

jquery - Set jPicker field to empty value -

.htaccess - htaccess convert request to clean url and add slash at the end of the url -