Export Hole Table with macro

Hi everyone,

I would like to make a macro which exports a pdf about my drawing and if the drawing contains a Hole Table, the macro exports an excel or txt with the Hole Table.

I've already made the pdf export , but I can't export the HoleTable. I've read somewhere that the only way to export a holetable is to read it cell by cell. Is it True?

If it is, how can I reach the cells?

SolidworksApi/macros