I'm using PHPexcel to load a Excel file(.xlsm) and update some cells and save it to a new excel file. The original one has formulas including IF, OR, ISNA, VLOOKUP,/ and some macros as well.
After I load the file into php, The formulas are not working(when I run it, the answer is always N/A.). So i decided to save it to another file then read again. Because the excel application will recalculate all cells. But I found that after I save it to another file, it doesn't actually save it. After I manually open the file and try to close, it will ask me if I want to save the changes. If i dont and load it with PHP. All data will be 0. But after I manually save it again. Everything is okay.
I know it sounds weird. But if anyone knows how to fix it, that will be great! Thx.