Dear All

I have used the putexcel command to successfully export regression results to an excel sheet. Additionally I'd like to export omega-squared from the
Code:
estat esize, omega
command for each independant variable in my regression model.

However, I cannot figure out how to do this. So, I run my regression and the effect size command. This is what my effect size output looks like

Array

Within my putexcel command (following the command for exporting my regression results), I have tried
Code:
   estat esize, omega
    matrix stats = r(stats)
    matrix o1 = stats[2,1..1]
    putexcel J`row'=matrix(o1), nformat(#.0000)
With this code, for example, I trying to export the omega-squared for "CO" into column J. However, Stata always exports data from my regression table, not from the effect size output.
I feel like I am missing something here, but I cannot get my head around. I was wondering, if it is even possible to use putexcel for commands that do not specify certain variables but instead are connected to a previous command...?

Thank you in advance for your help!
Best
Kristin