I found that it is possible to export data to excel from a closed shape. But I could not find any pointers regarding exporting territories. Is it possible to programmatically consider a territory as a closed shape and export it to excel

Thanks in advance
Ninjas