<?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 PROC Tabulate and EXCELXP - using cellheight on headers in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/PROC-Tabulate-and-EXCELXP-using-cellheight-on-headers/m-p/53545#M6656</link>
    <description>I am using PROC TABULATE and EXCELXP to create a table in Excel. Problem is, the column headings are long and the cell height doesn't expand to make the cell taller to fit the text. Have tried putting CELLHEIGHT in various places with no success.&lt;BR /&gt;
&lt;BR /&gt;
I am using: Excel XP tagset (SAS 9.1.3, v1.86, 04/15/08). &lt;BR /&gt;
&lt;BR /&gt;
Here's the code:&lt;BR /&gt;
&lt;BR /&gt;
ods tagsets.ExcelXP  file=Outfile options(AUTOFIT_HEIGHT='YES')&lt;BR /&gt;
 style=styles.mytab  styles.Statistical ;&lt;BR /&gt;
&lt;BR /&gt;
proc format;&lt;BR /&gt;
value $division&lt;BR /&gt;
'CONSUMER'="this is very long text for consumer"&lt;BR /&gt;
'EDUCATION'="this is very long text for education";&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
proc tabulate data=sashelp.prdsale;&lt;BR /&gt;
format division $division.;&lt;BR /&gt;
label division='this is a very long label for division. the cellheight needs to increase so that the value will fit';&lt;BR /&gt;
class country region division ;&lt;BR /&gt;
classlev country region division/style=[cellwidth=200px];&lt;BR /&gt;
&lt;BR /&gt;
table (country),division*(n pctn)&lt;BR /&gt;
&lt;BR /&gt;
;run;</description>
    <pubDate>Fri, 10 Jul 2009 19:43:27 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2009-07-10T19:43:27Z</dc:date>
    <item>
      <title>PROC Tabulate and EXCELXP - using cellheight on headers</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/PROC-Tabulate-and-EXCELXP-using-cellheight-on-headers/m-p/53545#M6656</link>
      <description>I am using PROC TABULATE and EXCELXP to create a table in Excel. Problem is, the column headings are long and the cell height doesn't expand to make the cell taller to fit the text. Have tried putting CELLHEIGHT in various places with no success.&lt;BR /&gt;
&lt;BR /&gt;
I am using: Excel XP tagset (SAS 9.1.3, v1.86, 04/15/08). &lt;BR /&gt;
&lt;BR /&gt;
Here's the code:&lt;BR /&gt;
&lt;BR /&gt;
ods tagsets.ExcelXP  file=Outfile options(AUTOFIT_HEIGHT='YES')&lt;BR /&gt;
 style=styles.mytab  styles.Statistical ;&lt;BR /&gt;
&lt;BR /&gt;
proc format;&lt;BR /&gt;
value $division&lt;BR /&gt;
'CONSUMER'="this is very long text for consumer"&lt;BR /&gt;
'EDUCATION'="this is very long text for education";&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
proc tabulate data=sashelp.prdsale;&lt;BR /&gt;
format division $division.;&lt;BR /&gt;
label division='this is a very long label for division. the cellheight needs to increase so that the value will fit';&lt;BR /&gt;
class country region division ;&lt;BR /&gt;
classlev country region division/style=[cellwidth=200px];&lt;BR /&gt;
&lt;BR /&gt;
table (country),division*(n pctn)&lt;BR /&gt;
&lt;BR /&gt;
;run;</description>
      <pubDate>Fri, 10 Jul 2009 19:43:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/PROC-Tabulate-and-EXCELXP-using-cellheight-on-headers/m-p/53545#M6656</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-07-10T19:43:27Z</dc:date>
    </item>
    <item>
      <title>Re: PROC Tabulate and EXCELXP - using cellheight on headers</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/PROC-Tabulate-and-EXCELXP-using-cellheight-on-headers/m-p/53546#M6657</link>
      <description>Hi:&lt;BR /&gt;
  When I try your code in SAS 9.2, with AUTOFIT, I see that Excel has just widened the table instead of wrapping the text. So, my long text was taken care of by the cell -width- being increased by Excel but I -do- see all the text in all the headers.&lt;BR /&gt;
 &lt;BR /&gt;
  In the SAS Log, when I use the Doc='Help' suboption, it says this about the AUTOFIT_HEIGHT suboption:&lt;BR /&gt;
[pre]&lt;BR /&gt;
Autofit_height:   Default Value 'no'&lt;BR /&gt;
     Values: yes, no, on, off.&lt;BR /&gt;
     If yes no row heights will be specified.  This allows the auto fit height&lt;BR /&gt;
     of Excel to do it's job, sometimes not so well.&lt;BR /&gt;
                    &lt;BR /&gt;
[/pre]&lt;BR /&gt;
 &lt;BR /&gt;
  It seems that you are experiencing the "sometimes not so well" behavior. Perhaps Tech Support will know what combination of sub-options will cause the cell height in Excel to increase (and the text to wrap) as you want.&lt;BR /&gt;
 &lt;BR /&gt;
cynthia</description>
      <pubDate>Fri, 10 Jul 2009 21:42:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/PROC-Tabulate-and-EXCELXP-using-cellheight-on-headers/m-p/53546#M6657</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2009-07-10T21:42:51Z</dc:date>
    </item>
  </channel>
</rss>

