I’m trying to read, clone and write and .xlsm file with PHPExcel but I get an error:
Fatal error: Uncaught exception ‘Exception’ with message ‘Worksheet!G177 -> Formula Error: An unexpected error occured’ in…
Anybody know how can I read, clone and write and Excel file with macros, I mean the macros are in a template (the file that I reading) I just want to clone that file and write on it, and just keep the macros in the new file. Is that possible with PHPExcel ? is there another library to do that ?
Thanks .
First:
Second:
And I’m not aware of any PHP libraries that support this.
The only way that I know for certain that you could do this would be using PHPs COM extension, on a server with MS Excel itself installed.
The only alternative to COM that may work would be Ilia Alshanetsky’s Excel extension