<?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: Populating Formatted Excel Spreadsheet in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Populating-Formatted-Excel-Spreadsheet/m-p/306960#M312636</link>
    <description>&lt;P&gt;Did you read the paper or try it?&lt;/P&gt;
&lt;P&gt;You don't need to know VB for it.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In my experience it's your best bet given your stated requirements. Otherwise DDE is your second choice.&lt;/P&gt;</description>
    <pubDate>Mon, 24 Oct 2016 20:29:12 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2016-10-24T20:29:12Z</dc:date>
    <item>
      <title>Populating Formatted Excel Spreadsheet</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Populating-Formatted-Excel-Spreadsheet/m-p/306912#M312633</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to automate population of a an excel workbook. The spreadsheets have very specific formatting and layout requirements. I need to generate one workbook per study group, for a total of 44 study groups. Each workbook has two worksheets. The worksheets&amp;nbsp;will need to&amp;nbsp;contain formulas.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A colleague of mine recommended that I look into using the SAS Libname engine approach. I've also read a little about ODS using the Excel tagsets, and have read a little about&amp;nbsp;DDE. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This colleague sent me the following paper: &lt;A href="http://www2.sas.com/proceedings/sugi31/024-31.pdf" target="_blank"&gt;http://www2.sas.com/proceedings/sugi31/024-31.pdf&lt;/A&gt;&amp;nbsp;. On pages 3-4 of the paper, it states:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P align="left"&gt;"The SAS libname engine does not have the capacity to...w&lt;FONT size="3"&gt;&lt;FONT face="Arial"&gt;&lt;FONT face="Arial"&gt;rite a formula into a cell." and "&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;Note that DDE may be used to create, delete, or rename spreadsheets, as well as to format worksheets and enter and delete formulas."&lt;/P&gt;&lt;P align="left"&gt;&amp;nbsp;&lt;/P&gt;&lt;P align="left"&gt;Questions:&lt;/P&gt;&lt;P align="left"&gt;(1) for those of you with experience using both the&amp;nbsp;SAS libname and DDE approaches to populating formatted excel workbooks, can I combine these approaches so that I can use the latter to overcome the limitations of the former (specifically with regard to creating formulas)?&lt;/P&gt;&lt;P align="left"&gt;(2) are there other approaches I can use to populate excel workbooks that have very specific formatting and layout requirements? My colleague looked at the workbook templates and thought&amp;nbsp;I'd have difficulty trying to use ODS to match the formatting/layout.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Tracy&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Oct 2016 18:45:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Populating-Formatted-Excel-Spreadsheet/m-p/306912#M312633</guid>
      <dc:creator>TracyH17</dc:creator>
      <dc:date>2016-10-24T18:45:39Z</dc:date>
    </item>
    <item>
      <title>Re: Populating Formatted Excel Spreadsheet</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Populating-Formatted-Excel-Spreadsheet/m-p/306927#M312634</link>
      <description>&lt;P&gt;See this macro which should allow you more flexibility in exporting your data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://www.sascommunity.org/wiki/A_Poor/Rich_SAS_Users_Proc_Export" target="_blank"&gt;http://www.sascommunity.org/wiki/A_Poor/Rich_SAS_Users_Proc_Export&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Otherwise DDE or executing an external VBS script is an option. You can use SAS to generate the VBS script if necessary.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Oct 2016 19:33:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Populating-Formatted-Excel-Spreadsheet/m-p/306927#M312634</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-10-24T19:33:23Z</dc:date>
    </item>
    <item>
      <title>Re: Populating Formatted Excel Spreadsheet</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Populating-Formatted-Excel-Spreadsheet/m-p/306940#M312635</link>
      <description>&lt;P&gt;I am not familiar with VB. Is there another way to populate formatted excel spreadsheets without having to use VB?&lt;/P&gt;</description>
      <pubDate>Mon, 24 Oct 2016 19:58:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Populating-Formatted-Excel-Spreadsheet/m-p/306940#M312635</guid>
      <dc:creator>TracyH17</dc:creator>
      <dc:date>2016-10-24T19:58:35Z</dc:date>
    </item>
    <item>
      <title>Re: Populating Formatted Excel Spreadsheet</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Populating-Formatted-Excel-Spreadsheet/m-p/306960#M312636</link>
      <description>&lt;P&gt;Did you read the paper or try it?&lt;/P&gt;
&lt;P&gt;You don't need to know VB for it.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In my experience it's your best bet given your stated requirements. Otherwise DDE is your second choice.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Oct 2016 20:29:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Populating-Formatted-Excel-Spreadsheet/m-p/306960#M312636</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-10-24T20:29:12Z</dc:date>
    </item>
  </channel>
</rss>

