07-25-2011 01:18 PM
I created a template for style;
define style Styles.JHTitle;
parent = styles.statictical;
'titlebg' = "5A5D62"
'titlefb' = "#000000";
ods tagsets.excelxp file = "output" style = JHTitle;
proc print data = rwork.totals;
Title "test color";
Title1 "Color test";
ods tagsets.excelxp close;
When I open the file up in Excel I get a message that says there is a problem with style.
Did I miss something in coding? Or is there more I have to do?
Thank you so much for any help,
07-26-2011 01:33 PM
I agree with Tim. The color definition should start with either 'CX' -- CX5A5D62 or should start with # as in #5A5D62.
Also, depending on your version of SAS, you either have the incorrect usage of the REPLACE statement. If you are running in SAS 9.1.3, then you would have to respecify the ENTIRE colors element list in order to correctly use the REPLACE statement. If you are using SAS 9.2, then you would be better off NOT using the REPLACE statement and using the STYLE or CLASS form of syntax.