Question: I created a console application using the Microsoft Office utilities: `ppcnvcom.exe`, `excelcnv.exe`, `wordconv.exe` to convert `doc` to `docx`, `xls` to `xlsx` and `ppt` to `pptx` respectively.

Does anyone know how to convert `xls` to `xlsm`?

`OFC.exe` is one option, but when I called it from sharepoint it was not successfully converted. The converter is blocked due to some security issue. `OFC.exe` automatically detects if there is a macro in the `xls` macro and then converts it to the `xlsm` file.

Is there a way to do this using `excelcnv.exe`?

Answer: 
That is a normal string containing template variables of some sort.

You would have to parse `$object->FormLayout` using the correct method - it can probably be found inside Joomla's code somewhere.
This is a php object and cannot be accessed like an array $array["FormLayout"]