Is there a fast way to conditionally set per-cell formatting with -putexcel- in Stata 14? I have a way, but it's slow with my real data.
If I want cell A1 to contain "Green" and have a solid green fill, and I want cell A2 to contain "Red" and have a solid red fill, I can do this in Stata 14:
But that doesn't scale well to lots of cells, presumably because -putexcel- is writing to disk once per line.
Is there any access to Excel's conditional formatting tools via -putexcel-?
Or... is there a way to use multiple fpat() statements per -putexcel- command? It seems like I should be able to code something like:
but that doesn't work.
If I want cell A1 to contain "Green" and have a solid green fill, and I want cell A2 to contain "Red" and have a solid red fill, I can do this in Stata 14:
Code:
putexcel A1="Green", fpat(solid, green) putexcel A2="Red", fpat(solid, red)
Is there any access to Excel's conditional formatting tools via -putexcel-?
Or... is there a way to use multiple fpat() statements per -putexcel- command? It seems like I should be able to code something like:
Code:
putexcel A1="Green", fpat(solid, green) A2="Red", fpat(solid, red)
Comment