How to BOM table data transmit to excel

There are a Bom Table.

Target demand:

Adopts API (MACRO) technology, will BOM data transmission to excel

Thanks.

SolidworksApi macros