xlsm

User Defined Functions NOT recalculating

为君一笑 提交于 2019-11-27 15:52:49
问题 I recently took a large, stable XLSM file, and split it apart into an XLAM and XLSX. Thousands of cells in the XLSX call (udfs) functions in the XLAM, and each such udf begins with the statement "Application.Volatile" (overkill, to force recalc). The XLSX will NOT recalc with F9 thru Ctrl-Alt-Shift F9, nor with Cell.Calculate thru Application.CalculateFull. The XLSX cells are simply "dead" ... but ... I can reawaken them one by one if I hit F2 to edit the formula and then hit ENTER. Cells

How to save XLSM file with Macro, using openpyxl

对着背影说爱祢 提交于 2019-11-27 09:41:31
I have .xlsm file with a Macro function. I'm loading it using openpyxl and write some data to the file and finally want to save as a different .xlsm file. To save the file as XLSM file I have used below code in my Python script. wb.save('testsave.xlsm'); But I cannot open that file if I saved as above. But if I saved it as .xlsx then I can open the file without the Macro function that original file had. I want to open a Excel sheet that has Macro function, edit the file and save it as new .xlsm file using openpyxl . How can I do that? For me this worked, together with version openpyxl==2.3.0

When should the xlsm or xlsb formats be used?

做~自己de王妃 提交于 2019-11-27 05:11:09
问题 Since Excel 2007, Microsoft has split the classical .xls format to several formats (in particular, .xlsx , .xlsm , .xlsb ). I've got no problem to understand the use and purpose of .xlsx format but I am still wondering whether we should use a .xlsm or a .xlsb format when creating a file containing some VBA. Of course, you can find some topics on the web, for instance: on Microsoft answers forum on Microsoft blog that was pointed in the previous link (yet I've parsed until the 10 th page

How to save XLSM file with Macro, using openpyxl

南笙酒味 提交于 2019-11-26 14:48:50
问题 I have .xlsm file with a Macro function. I'm loading it using openpyxl and write some data to the file and finally want to save as a different .xlsm file. To save the file as XLSM file I have used below code in my Python script. wb.save('testsave.xlsm'); But I cannot open that file if I saved as above. But if I saved it as .xlsx then I can open the file without the Macro function that original file had. I want to open a Excel sheet that has Macro function, edit the file and save it as new