I'm pretty sure this should be easy, but......

I have created a pivot table using the table function:

table country year, c(mean GDP)

But then I want to write it to excel (export excel of putexcel), but the table doesn't have a name to which I can refer. Apparently it is also not "in memory" because I can't save the table as a .dta file and then export it to excel.

Any help?

Rutger