BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
ADN
Fluorite | Level 6 ADN
Fluorite | Level 6

Hi,

 

I am using SAS ODS Excel to generate excel files with tables. My question is how do I set the font, font size, color and font weight. 

 

Previously I used something like this in SAS ods excelxp tagset. But that does not seem to be working anymore.

 

define tot_defects/ display style(header)={font_face="Calibri" font_size=12pt font_weight=bold background=CX2E8B57 foreground=CXFFFFFF just=c}
          style(column)={font_face="Calibri" font_size=10pt just=c};

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Vince_SAS
Rhodochrosite | Level 12

I suggest that you open a track with our Technical Support Department:

 

http://support.sas.com/ctx/supportform/createForm

 

Be sure to include your code, sample data, and a copy of the SAS log from the code that fails.

 

Vince DelGobbo

SAS R&D

 

View solution in original post

3 REPLIES 3
Vince_SAS
Rhodochrosite | Level 12

What version of SAS are you using?  This worked for me using SAS 9.4 M3 on Windows:

 

ods _all_ close;
ods Excel file='C:\temp\temp.xlsx'; proc report data=sashelp.class nowd; column name age sex height weight; define name / display style(header)=[font_face='Calibri' font_size=12pt font_weight=bold background=CX2E8B57 foreground=CXFFFFFF just=c] style(column)=[font_face='Calibri' font_size=10pt just=c]; run; quit; ods Excel close;

Vince DelGobbo

SAS R&D

ADN
Fluorite | Level 6 ADN
Fluorite | Level 6

I am using sas 9.04.01M3P062415

 

I think the Fonts are not coming as expected. Rest is still fine........

Vince_SAS
Rhodochrosite | Level 12

I suggest that you open a track with our Technical Support Department:

 

http://support.sas.com/ctx/supportform/createForm

 

Be sure to include your code, sample data, and a copy of the SAS log from the code that fails.

 

Vince DelGobbo

SAS R&D

 

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

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
  • 3 replies
  • 10178 views
  • 2 likes
  • 2 in conversation