Macro Excel - formatting based on attributes value

Hi, I need to generate an excel file – using the excel exporter module – with conditional formatting (cell styling based on attributes value). I’ve been searching for a solution for a while, ‘till I found an answer to another question, saying that this goal can be achieved adding a macro in the excel template.  Which “Can easily be done by recording a macro in Excel”.  Here’s the other question:  Could anyone explain me how i should add a maco to an excel exporter template? Else maybe you can suggest me another way to get conditional formatting in an excel generated from an application. Thanks in advance, Vale
1 answers


I found a solution in an other question on the forum. 
Here’s the link: 

Big thanks to Ivo :D