Hi, I want to create a Excel report which would have data output from SAS dataset. I am using Proc report through ODS Tagset.ExcelXP to write the data in an Excel. I am facing a couple of issues while trying to complete this 1) Report contains 3 levels of Spanning headers and I would need different background colors for all the headers. I was trying the Traffic Lighting way proc format; value $color 'REPORT' = '#9999FF' 'Australia' = '#FF6600' other = '#FF6600'; run; ods listing close; ods tagsets.excelxp file = 'report.xls' options ( Autofilter = 'YES' absolute_column_width = "11,14,........) style = sansprinter; proc report data = sfin.reportfin nowd style(header) = { background = $color. font_size= 10pt}; column ('REPORT'('Australia' ABC DEF XYZ ('States' X Y Z (....)))); display ABC .... .. run; but the headers do not take the desired background values. Not sure if this appoach is correct. 2) Inline formatting using ods escapechar not working.Although I am not getting any errors in the log. 3) This report would be generated bimonthly and as part of the next iteration, I would want to open the same excel sheet and wrtie out the results. all this would happen dynamically, meaning I would not know how many rows would get populated in the spreadsheet.The challenge here is that I am not finding any option that allows me to open an existing spreadsheet to write out the results.Any suggestions?
... View more