<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: export to excel(.xls) file with specified font in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/export-to-excel-xls-file-with-specified-font/m-p/103128#M28899</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hi:&lt;/P&gt;&lt;P&gt;&amp;nbsp; When you use PROC EXPORT (or the SAS Excel Libname Engine), you are doing a "data to data" export. Using PROC EXPORT, a SAS dataset is exported to proprietary, Excel data (worksheet/workbook) format. There are no fonts or colors that you can specify in this type of export process. All fonts and colors are provided by the application that &lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;opens&lt;/STRONG&gt;&lt;/SPAN&gt; the exported data -- in this case, Microsoft Excel. So, you can either change your Excel defaults or switch to ODS-based methods, so that you can specify style characteristics for the report file that you create with ODS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; With ODS, if you create either an HTML file or an XML file from your procedure of choice (such as PROC PRINT), for example, then you CAN specify fonts (and colors) to be used when the file is opened and rendered. Because you are creating a report result file using ODS, you CAN specify fonts by using ODS STYLE= override methods.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; In the code below, ODS methods of changing the font are shown for a Microsoft HTML file (created by ODS MSOFFICE2K) and for a Spreadsheet Markup Language XML file (created by TAGSETS.EXCELXP). You can open each file by doing a File--&amp;gt; Open from inside Microsoft Excel. Note that with ODS TAGSETS.EXCELXP, there is also a sub-option method for specifying the sheet-name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cynthia&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;ods listing close;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;title; footnote;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;** do file--&amp;gt; open from inside Excel to open these files;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;ods msoffice2k file='c:\temp\class_ht.html' style=sasweb;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;ods tagsets.excelxp file='c:\temp\class_xp.xml' style=sasweb&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; options(sheet_name="sashelp_class");&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;proc print data=sashelp.class noobs&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; style(header)={font_face="Calibri" font_size=12pt}&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; style(data)={font_face="Calibri" font_size=10pt};&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;var name age sex height weight;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;run;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;ods _all_ close;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 09 Jul 2012 20:46:15 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2012-07-09T20:46:15Z</dc:date>
    <item>
      <title>export to excel(.xls) file with specified font</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/export-to-excel-xls-file-with-specified-font/m-p/103127#M28898</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Helo everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is that possible we can use proc export to generate an .xls(excel 2003) file with specified font, such as "Calibri"?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want the output excel file use font: &lt;STRONG&gt;"Calibri".&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the default font of my output file&amp;nbsp; is "MS Sans Serif",looks not good.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROC EXPORT DATA=sashelp.class&lt;/P&gt;&lt;P&gt;OUTFILE = "c:\temp\sashelpclass.xls"&lt;/P&gt;&lt;P&gt;DBMS = EXCEL2002 REPLACE;&lt;/P&gt;&lt;P&gt;SHEET = "sashelpclass";&lt;/P&gt;&lt;P&gt;RUN;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jul 2012 20:17:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/export-to-excel-xls-file-with-specified-font/m-p/103127#M28898</guid>
      <dc:creator>Mike_Davis</dc:creator>
      <dc:date>2012-07-09T20:17:43Z</dc:date>
    </item>
    <item>
      <title>Re: export to excel(.xls) file with specified font</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/export-to-excel-xls-file-with-specified-font/m-p/103128#M28899</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hi:&lt;/P&gt;&lt;P&gt;&amp;nbsp; When you use PROC EXPORT (or the SAS Excel Libname Engine), you are doing a "data to data" export. Using PROC EXPORT, a SAS dataset is exported to proprietary, Excel data (worksheet/workbook) format. There are no fonts or colors that you can specify in this type of export process. All fonts and colors are provided by the application that &lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;opens&lt;/STRONG&gt;&lt;/SPAN&gt; the exported data -- in this case, Microsoft Excel. So, you can either change your Excel defaults or switch to ODS-based methods, so that you can specify style characteristics for the report file that you create with ODS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; With ODS, if you create either an HTML file or an XML file from your procedure of choice (such as PROC PRINT), for example, then you CAN specify fonts (and colors) to be used when the file is opened and rendered. Because you are creating a report result file using ODS, you CAN specify fonts by using ODS STYLE= override methods.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; In the code below, ODS methods of changing the font are shown for a Microsoft HTML file (created by ODS MSOFFICE2K) and for a Spreadsheet Markup Language XML file (created by TAGSETS.EXCELXP). You can open each file by doing a File--&amp;gt; Open from inside Microsoft Excel. Note that with ODS TAGSETS.EXCELXP, there is also a sub-option method for specifying the sheet-name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cynthia&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;ods listing close;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;title; footnote;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;** do file--&amp;gt; open from inside Excel to open these files;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;ods msoffice2k file='c:\temp\class_ht.html' style=sasweb;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;ods tagsets.excelxp file='c:\temp\class_xp.xml' style=sasweb&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; options(sheet_name="sashelp_class");&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;proc print data=sashelp.class noobs&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; style(header)={font_face="Calibri" font_size=12pt}&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; style(data)={font_face="Calibri" font_size=10pt};&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;var name age sex height weight;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;run;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;ods _all_ close;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jul 2012 20:46:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/export-to-excel-xls-file-with-specified-font/m-p/103128#M28899</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2012-07-09T20:46:15Z</dc:date>
    </item>
    <item>
      <title>Re: export to excel(.xls) file with specified font</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/export-to-excel-xls-file-with-specified-font/m-p/103129#M28900</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Thank you very much..but it will cause cause error when I run the code in SAS 9.1.3:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ERROR:&amp;nbsp; Read Access Violation In Task [ PRINT )&lt;/P&gt;&lt;P&gt;Exception occurred at (673722F0)&lt;/P&gt;&lt;P&gt;Task Traceback&lt;/P&gt;&lt;P&gt;Address&amp;nbsp;&amp;nbsp; Frame&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (DBGHELP API Version 4.0 rev 5)&lt;/P&gt;&lt;P&gt;673722F0&amp;nbsp; 06ABE6A8&amp;nbsp; saswuchr:mcn_main+0x12F0&lt;/P&gt;&lt;P&gt;60AD73B0&amp;nbsp; 06ABEE8C&amp;nbsp; sasxml:mcn_main+0x363B0&lt;/P&gt;&lt;P&gt;60AE8790&amp;nbsp; 06ABF324&amp;nbsp; sasxml:mcn_main+0x47790&lt;/P&gt;&lt;P&gt;60D62C20&amp;nbsp; 06ABF41C&amp;nbsp; sasmrk:mcn_main+0x11C20&lt;/P&gt;&lt;P&gt;60D6127F&amp;nbsp; 06ABF55C&amp;nbsp; sasmrk:mcn_main+0x1027F&lt;/P&gt;&lt;P&gt;60AE6235&amp;nbsp; 06ABF5E8&amp;nbsp; sasxml:mcn_main+0x45235&lt;/P&gt;&lt;P&gt;60D556F8&amp;nbsp; 06ABF684&amp;nbsp; sasmrk:mcn_main+0x46F8&lt;/P&gt;&lt;P&gt;60D551A4&amp;nbsp; 06ABF6AC&amp;nbsp; sasmrk:mcn_main+0x41A4&lt;/P&gt;&lt;P&gt;66F1AE26&amp;nbsp; 06ABFA4C&amp;nbsp; sasprt7:mcn_main+0x9E26&lt;/P&gt;&lt;P&gt;66F15F94&amp;nbsp; 06ABFCE4&amp;nbsp; sasprt7:mcn_main+0x4F94&lt;/P&gt;&lt;P&gt;66F1C8A2&amp;nbsp; 06ABFD08&amp;nbsp; sasprt7:mcn_main+0xB8A2&lt;/P&gt;&lt;P&gt;66F1C43F&amp;nbsp; 06ABFD88&amp;nbsp; sasprt7:mcn_main+0xB43F&lt;/P&gt;&lt;P&gt;66F1164E&amp;nbsp; 06ABFDFC&amp;nbsp; sasprt7:mcn_main+0x64E&lt;/P&gt;&lt;P&gt;66F1C339&amp;nbsp; 06ABFE40&amp;nbsp; sasprt7:mcn_main+0xB339&lt;/P&gt;&lt;P&gt;66F32054&amp;nbsp; 06ABFF88&amp;nbsp; sasprint:mcn_main+0x1054&lt;/P&gt;&lt;P&gt;01272B02&amp;nbsp; 06ABFFA0&amp;nbsp; sashost:Main+0xBE72&lt;/P&gt;&lt;P&gt;01276C20&amp;nbsp; 06ABFFB4&amp;nbsp; sashost:Main+0xFF90&lt;/P&gt;&lt;P&gt;7C80B729&amp;nbsp; 06ABFFEC&amp;nbsp; kernel32:GetModuleFileNameA+0x1BA&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jul 2012 13:14:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/export-to-excel-xls-file-with-specified-font/m-p/103129#M28900</guid>
      <dc:creator>Mike_Davis</dc:creator>
      <dc:date>2012-07-10T13:14:17Z</dc:date>
    </item>
    <item>
      <title>Re: export to excel(.xls) file with specified font</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/export-to-excel-xls-file-with-specified-font/m-p/103130#M28901</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OR try to use proc report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;ods listing close;
ods tagsets.excelxp file='c:\temp\class_xp.xls' style=sasweb
&amp;nbsp;&amp;nbsp;&amp;nbsp; options(sheet_name="sashelp_class");
proc report data=sashelp.class nowd
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; style(header)={font_face="Calibri" font_size=12pt}
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; style(report)={font_face="Calibri" font_size=10pt};
column name age sex height weight;
run;
ods tagsets.excelxp close;
ods listing;


&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ksharp&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jul 2012 01:53:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/export-to-excel-xls-file-with-specified-font/m-p/103130#M28901</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2012-07-11T01:53:10Z</dc:date>
    </item>
    <item>
      <title>Re: export to excel(.xls) file with specified font</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/export-to-excel-xls-file-with-specified-font/m-p/103131#M28902</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;If it works with REPORT and not with PRINT in SAS 9.1.3, then that is also an issue for Tech Support. Style= overrides have been possible with &lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;both&lt;/STRONG&gt;&lt;/SPAN&gt; PROC REPORT and PROC PRINT since ODS was first introduced.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, when I run your code, the Headers are in Calibri font, but the data columns are still in Arial. To change the data columns to Calibri, the style(report) override should change to style(column):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;proc report data=sashelp.class nowd&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; style(header)={font_face="Calibri" font_size=12pt}&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #ff00ff;"&gt;style(column)={font_face="Calibri" font_size=10pt};&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are very few fonts that are controlled by the "report" area in a style override -- that area is usually where you change interior table lines, cellspacing, cellpadding, etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cynthia&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jul 2012 02:57:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/export-to-excel-xls-file-with-specified-font/m-p/103131#M28902</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2012-07-11T02:57:30Z</dc:date>
    </item>
    <item>
      <title>Re: export to excel(.xls) file with specified font</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/export-to-excel-xls-file-with-specified-font/m-p/103132#M28903</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG __jive_id="2224" alt="sss.JPG" class="jive-image" src="https://communities.sas.com/legacyfs/online/2224_sss.JPG" /&gt;Thank you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This ods tagsets.excelxp output(style=sasweb) is very great, only one thing need to be mentioned: how to get the excel file change to no background color(use the most simple style but&amp;nbsp; only with specialf font) in SAS ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jul 2012 13:44:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/export-to-excel-xls-file-with-specified-font/m-p/103132#M28903</guid>
      <dc:creator>Mike_Davis</dc:creator>
      <dc:date>2012-07-11T13:44:35Z</dc:date>
    </item>
    <item>
      <title>Re: export to excel(.xls) file with specified font</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/export-to-excel-xls-file-with-specified-font/m-p/103133#M28904</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;&amp;nbsp; One of the reasons for using ODS is to be able to have styles, colors and font capability in the result file -- this is something that you do NOT have with data to data export methods like PROC EXPORT and the LIBNAME engine. When I use STYLE=SASWEB, the background of the cells are white and the header cells are blue? I'm not sure I understand what you want when you say "no background color" -- when I open Excel, the usual background to all the cells is white? If you do not want the header colors to be blue, then you might try another style, such as STYLE=MINIMAL&lt;/P&gt;&lt;P&gt;or, change the code so the header is also white:&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;proc report data=sashelp.class nowd&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; style(header)={font_face="Calibri" font_size=12pt}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; style(column)={font_face="Calibri" font_size=10pt background=white};&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cynthia&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Cynthia Zender&#xD;
&#xD;
The screenshot shows how my output looks when created with SAS 9.3 (making the header background white) and opened with Excel 2010. The version of TAGSETS.EXCELXP I am using is:&#xD;
NOTE: This is the Excel XP tagset (Compatible with SAS 9.1.3 and above, v1.122, 01/04/2011).&#xD;
&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/11626iF2107BC313E9B3EE/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="excel2010_open_wb.png" title="excel2010_open_wb.png" /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jul 2012 13:56:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/export-to-excel-xls-file-with-specified-font/m-p/103133#M28904</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2012-07-11T13:56:51Z</dc:date>
    </item>
    <item>
      <title>Re: export to excel(.xls) file with specified font</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/export-to-excel-xls-file-with-specified-font/m-p/103134#M28905</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I attached another picture here,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After use the code to generate the excel file,I have to open it in excel and I need to change the background color to no fill(please see the picture I attached below).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any way to create the same excel file in SAS instead of changing&amp;nbsp; in excel manually?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="2226" alt="123.JPG" class="jive-image" src="https://communities.sas.com/legacyfs/online/2226_123.JPG" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jul 2012 19:08:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/export-to-excel-xls-file-with-specified-font/m-p/103134#M28905</guid>
      <dc:creator>Mike_Davis</dc:creator>
      <dc:date>2012-07-11T19:08:12Z</dc:date>
    </item>
    <item>
      <title>Re: export to excel(.xls) file with specified font</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/export-to-excel-xls-file-with-specified-font/m-p/103135#M28906</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;&amp;nbsp; I'm baffled, as you can see from my screen shot, I do have interior table lines when I open the output using Excel 2010. I did NOT use the No Fill option, at all. The only recommendation I can make is that you work with Tech Support to figure out what the difference is between how you're creating your output (ExcelXP version, SAS version, Microsoft Office version) and what seems to be happening with the most current versions of XP, SAS and Office.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cynthia&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jul 2012 20:12:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/export-to-excel-xls-file-with-specified-font/m-p/103135#M28906</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2012-07-11T20:12:44Z</dc:date>
    </item>
    <item>
      <title>Re: export to excel(.xls) file with specified font</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/export-to-excel-xls-file-with-specified-font/m-p/103136#M28907</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG alt="222.JPG" class="jive-image-thumbnail jive-image" src="https://communities.sas.com/legacyfs/online/2239_222.JPG" width="450" /&gt;&lt;/P&gt;&lt;P&gt;Hi, I attached a more clear picture,This is a screen shoot of excel file create by the SAS code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'Before' part&amp;nbsp; are the orginal output file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'After ' part are the part used with no fill under excel(which are what I need to be generated directly by SAS).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jul 2012 13:28:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/export-to-excel-xls-file-with-specified-font/m-p/103136#M28907</guid>
      <dc:creator>Mike_Davis</dc:creator>
      <dc:date>2012-07-12T13:28:36Z</dc:date>
    </item>
    <item>
      <title>Re: export to excel(.xls) file with specified font</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/export-to-excel-xls-file-with-specified-font/m-p/103137#M28908</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;&amp;nbsp; I still think you should work with Tech Support. I think it might be possible to do some of what you want with a style template change, however, you might also need to update your version of TAGSETS.EXCELXP, first. &lt;A href="http://support.sas.com/kb/38/282.html" title="http://support.sas.com/kb/38/282.html"&gt;http://support.sas.com/kb/38/282.html&lt;/A&gt; (talks about grid lines) However, I did NOT have to use a custom style template to get gridlines when I used EXCELXP. So I really think that Tech Support is your best bet for additional help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; I do remember that in the early days of TAGSETS.EXCELXP, it was possible to get a gray background to the sheet and no interior table lines, but as you see in my screenshot, when I use version&amp;nbsp; v1.122 of the EXCELXP tagset and SAS 9.3 and Excel 2010, I don't have a gray background and I do have interior lines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Tech Support can work with you to figure out the solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cynthia&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jul 2012 15:09:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/export-to-excel-xls-file-with-specified-font/m-p/103137#M28908</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2012-07-12T15:09:04Z</dc:date>
    </item>
  </channel>
</rss>

