hole table for curved surface

Hello! I am trying to generate a hole table for holes perpendicular to a curved surface. The curved surface was generated using a loft section, and holes generated using hole wizard and curve driven patterns.  When I try to make the hole table, I cannot select the curved surface, so I instead have to manually select all the holes.  When this table is generated, it gives x y coordinates, but it would be nice to have z coordinates for the hole locations as well.  Does anyone have a macro for this/ have a good idea as to how to do this?  Thanks!

SolidworksDrawings And Detailing