Hi Eric
Thank you for your answer. I still have problems though. The tagattr doesn't seem to work with proc tabulate.
I have tried the styleattr and to make a picture format and apply that together with the thousands_separator. Nothing seem to "bite".
data test;
format var1 8.;
var1 = 123456;
var2 = put(today(),yymmdd10.);
run;
ods path SASUSER.TEMPLAT(UPDATE) SASHELP.TMPLMST(READ) SASHELP.TEMPLAT(READ);
ods tagsets.excelxp file="/sas/sasdata/MAExports/test.xls" style=bwinstyle
options (frozen_headers='yes' frozen_rowheaders='yes' default_column_width='10' Thousands_separator=',' );
options missing = 0;
ods tagsets.excelxp options (sheet_name = "With tagattr");
proc tabulate data = test;
var var1/style={tagattr="format:###,###,###"};
class var2;
table var2,var1;
run;
ods tagsets.excelxp options (sheet_name = "With picture");
proc format;
picture curr low-high='000,000' ;
run;
proc tabulate data = test;
var var1;
class var2;
table var2,var1*f=curr.*sum;
run;
ods tagsets.excelxp close;
br
Jenny
... View more