BookmarkSubscribeRSS Feed
TorbenC
Calcite | Level 5

Hi

The small example below:

 

proc format;
value $sexfmt
"F"="Red"
"M"="Blue";
run;

proc report data=sashelp.class nowd ;
column sex name age;
define sex / group style(column)={background=$sexfmt.} ;
define name / display ;
define age / display format=4.1;
run ;

 

works very well in SAS. 

When it is stored in an STP and called from ExcellAddin the style adjustments disappear. 

How to get Excell addin to respect these adjustments ?

 

Regards,

Torben

1 REPLY 1
Cynthia_sas
SAS Super FREQ
Hi:
Generally, the SAS Style is not used by the SAS Add-in for Microsoft Office by default. There are several factors that will determine the answer to your question.

Under the SAS Options, how are the Stored Process results defined -- do they use the default result format of SASReport? If so, then the style might not be used by the SASReport destination, which tends to return the stored process results very plainly without any style.

I believe that if you look at the results options, you can ask for the stored process results to be returned in HTML format, which may have a better chance of using your style and style overrides.

I can't remember whether there is a box to select the default style that the stored process uses.

Another factor is how the stored process developer wrote the stored process. It is possible for them to put overrides into the stored process that control the type of result format and the style.

So without knowing whether the stored process author is controlling the stored process results or whether the Add-in Options are controlling the results, it is hard to provide other suggestions.

cynthia

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 1 reply
  • 725 views
  • 0 likes
  • 2 in conversation