Hi Everyone,
I have a slew of reports being generated by SAS into Excel via ODS and the ExcelXP tagset. To cut down on post-processing, I've tried to have SAS generate the spreadsheets as close as possible to what the finished products need to look like by using various tagset options (column widths, headers, page centering, etc.).
The two biggest time-wasters in terms of post-processing involve specifically coloring clusters of cells according to what row/column they're in, along with adding in "spacing" columns and rows to create the cluster effect. Example:
Before:
3629 74.90% 3573 73.50%
1216 25.00% 1285 26.40%
4845 100.00% 4858 100.00%
3982 68.70% 3693 65.60%
1812 31.20% 1934 34.30%
5794 100.00% 5627 100.00%
After:
3629 74.90% (blank)3573 73.50%
1216 25.00% (blank)1285 26.40%
4845 100.00% (blank)4858 100.00%
(empty row)
3982 68.70% (blank) 3693 65.60%
1812 31.20% (blank) 1934 34.30%
5794 100.00% (blank) 5627 100.00%
Each of the above 4 clusters would have different BG colors, according to the values of the column and row headers.
I've tried to write Excel macros to do this portion, but they're not universal enough. Is there any way to achieve either of these tasks through SAS, or am I out of luck?
... View more