I have a bit of code that looks like this:

Code:
qui {
    putexcel set test.xlsx, replace
    use https://www.stata-press.com/data/r17/nhanes2f, clear
    svyset psuid [pweight=finalwgt], strata(stratid)
    svy: mean weight female black rural
    putexcel B3=etable
}
Which generates an error; -putexcel- in the last line can't find estimates. However, if I -noisily- summarize my values it works fine:

Code:
qui {
    putexcel set test.xlsx, replace
    use https://www.stata-press.com/data/r17/nhanes2f, clear
    svyset psuid [pweight=finalwgt], strata(stratid)
    noi svy: mean weight female black rural
    putexcel B3=etable
}
This seems to me to be a bug - whether or not -svy: mean- is run quietly or not, it should still store the same results, right?

Notably, I found the same behaviour in both Stata 16.1 and Stata 17.

Jeph