How can I export datum points referenced from a custom coordinate system into excel?

How can I export datum points referenced from a custom coordinate system into excel? I have found macros for sketch points but nothing for points referenced from a custom coordinate system, or even anything using datum points. Please help. I am dumbfounded.

SolidworksApi macros