MACRO with semicolon (;)

Hi

I have already post the quesion here

https://forum.solidworks.com/message/291547#291547

Unfortunately are not practical with macros.

Someone can help me to compilate  this macro : " Export SolidWorks BOM to Excel "

http://www.dab-lab.co.uk/export-solidworks-bom-to-excel.html

Grazie 1000

SolidworksApi macros