Thanks for your effort. Unfortunately, the shapes have no chart.
Ironically, VBA knows which shapes are selected. I can use VBA to put the name of the shape somewhere on the spreadsheet, then my script can retrieve the name and then do something with the shape. So, I can have my script run the macro, then retrieve the name of the shape.