Dear all,

I need to generate an Excel report containing summary statistics as well as a subset of observations from a Stata dataset.

In the first step, I make use of the
Code:
export excel
command, to write a subset of observations to Excel. In the next step, I would then like to highlight (i.e set the cell background to orange) the the largest and smallest 5 values in each numeric variable that I exported to Excel in the first step. Can I somehow achieve this with some sort of a
Code:
putexcel ..., fpattern(solid, lightgray)
type of a command, or is there another feasible way (from within Stata) to set the cell background color in an Excel worksheet conditional on the value of the cell?

Thanks,
Ingo