Development: how to export the overlay calendar to excel?

My publication is probably a duplicate of this (publication), but I would still like to ask the new question: How can I export the overlay calendar to excel since the current functionality will export it as blank?

Only export by calendar, not as overlay. What is the best possible way to do that? How can I do that programmatically?

All suggestions are welcome.