<?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 Export to specific cells in Excel in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Export-to-specific-cells-in-Excel/m-p/84662#M256892</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Need some direction or ideas etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to export data to specific cells in an excel preformatted workbook.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone have any ideas how to do this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 19 Jul 2013 22:49:59 GMT</pubDate>
    <dc:creator>jlaw</dc:creator>
    <dc:date>2013-07-19T22:49:59Z</dc:date>
    <item>
      <title>Export to specific cells in Excel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Export-to-specific-cells-in-Excel/m-p/84662#M256892</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Need some direction or ideas etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to export data to specific cells in an excel preformatted workbook.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone have any ideas how to do this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Jul 2013 22:49:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Export-to-specific-cells-in-Excel/m-p/84662#M256892</guid>
      <dc:creator>jlaw</dc:creator>
      <dc:date>2013-07-19T22:49:59Z</dc:date>
    </item>
    <item>
      <title>Re: Export to specific cells in Excel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Export-to-specific-cells-in-Excel/m-p/84663#M256893</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;DDE:&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/hostwin/63285/HTML/default/viewer.htm#ddeexamples.htm" title="http://support.sas.com/documentation/cdl/en/hostwin/63285/HTML/default/viewer.htm#ddeexamples.htm"&gt;SAS(R) 9.2 Companion for Windows, Second Edition&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 20 Jul 2013 00:20:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Export-to-specific-cells-in-Excel/m-p/84663#M256893</guid>
      <dc:creator>Haikuo</dc:creator>
      <dc:date>2013-07-20T00:20:28Z</dc:date>
    </item>
    <item>
      <title>Re: Export to specific cells in Excel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Export-to-specific-cells-in-Excel/m-p/84664#M256894</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you simply want to copy and paste the data, you can do it very easily in two steps: (1) use a datastep to put the data on your system's clipboard and (2) manually paste (i.e., ctrl-v) the clipboard where you want in Excel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you don't need the variables names the datastep can be as simple as:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-left: .5in; margin-bottom: .0001pt; text-align: justify;"&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Courier New';"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-align: left; padding-left: 30px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp; %let lib=sashelp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-align: left; padding-left: 30px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp; %let mem=class;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-left: 0.5in; margin-bottom: 0.0001pt; text-align: left;"&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: 'courier new', courier;"&gt;filename clippy clipbrd;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-left: 0.5in; margin-bottom: 0.0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Courier New';"&gt;data _null_;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-left: 0.5in; margin-bottom: 0.0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Courier New';"&gt;&amp;nbsp; file clippy dsd dlm="09"x;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-left: 0.5in; margin-bottom: 0.0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Courier New';"&gt;&amp;nbsp; set &amp;amp;lib..&amp;amp;mem.;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-left: 0.5in; margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-family: 'Courier New'; font-size: 10pt; line-height: 1.5em;"&gt;&amp;nbsp; put(_all_)(:);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-left: 0.5in; margin-bottom: 0.0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Courier New';"&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-left: 0.5in; margin-bottom: 0.0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Courier New';"&gt;filename clippy clear;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-left: 0.5in; margin-bottom: 0.0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Courier New';"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 20 Jul 2013 13:43:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Export-to-specific-cells-in-Excel/m-p/84664#M256894</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2013-07-20T13:43:49Z</dc:date>
    </item>
    <item>
      <title>Re: Export to specific cells in Excel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Export-to-specific-cells-in-Excel/m-p/84665#M256895</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I do not see how your DATA step exports a specific SAS data variable value to a specific Excel worksheet cell.&lt;/P&gt;&lt;P&gt;Implicit in the reference to DDE in the response by Hai.kuo is the fact that DDE can do it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 20 Jul 2013 20:23:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Export-to-specific-cells-in-Excel/m-p/84665#M256895</guid>
      <dc:creator>LeRoyBessler</dc:creator>
      <dc:date>2013-07-20T20:23:49Z</dc:date>
    </item>
    <item>
      <title>Re: Export to specific cells in Excel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Export-to-specific-cells-in-Excel/m-p/84666#M256896</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A __default_attr="566810" __jive_macro_name="user" class="jive_macro jive_macro_user" data-objecttype="3" href="https://communities.sas.com/"&gt;&lt;/A&gt;:&amp;nbsp; You and I apparently read the OP's &lt;A __default_attr="811898" __jive_macro_name="user" class="jive_macro jive_macro_user" data-objecttype="3" href="https://communities.sas.com/"&gt;&lt;/A&gt;'s request differently.&amp;nbsp; When I read "&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;export data to specific cells in an excel preformatted workboo&lt;/SPAN&gt;k" I interpret the question as possibly simply being a request to export a SAS dataset in a way that it can be pasted in an existing, preformatted Excel workbook.&amp;nbsp; As far as I know, Excel's paste or paste special can accomplish that task if the data reside in one's clipboard.&amp;nbsp; My code was simply one method of getting the data into the clipboard.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, of course, the same task can be accomplished using DDE but, as long as the OP doesn't need to create a fully automated procedure, I think using a datastep with the clipbrd method is a lot easier.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Art &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 20 Jul 2013 23:20:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Export-to-specific-cells-in-Excel/m-p/84666#M256896</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2013-07-20T23:20:19Z</dc:date>
    </item>
    <item>
      <title>Re: Export to specific cells in Excel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Export-to-specific-cells-in-Excel/m-p/84667#M256897</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Create a named range of the cells in the Excel workbook. &lt;/P&gt;&lt;P&gt;Create the dataset in the same format the range is in. &lt;/P&gt;&lt;P&gt;Export out using proc export with the range specified as the name range in the excel workbook OR&lt;/P&gt;&lt;P&gt;use libname and export out to the specified range. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Personally, I export to a separate sheet and link the cells from that sheet to my desired cells. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 20 Jul 2013 23:43:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Export-to-specific-cells-in-Excel/m-p/84667#M256897</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2013-07-20T23:43:06Z</dc:date>
    </item>
    <item>
      <title>Re: Export to specific cells in Excel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Export-to-specific-cells-in-Excel/m-p/84668#M256898</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To clarify - Ideally this will be an automated process. &lt;/P&gt;&lt;P&gt;I have heard of it being done just have not seen any examples of the process. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will review the various suggestions and let you know if I am successful or have additional questions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Feel free to respond with additional options/methods ect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you all so much for your replies.&lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jul 2013 19:17:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Export-to-specific-cells-in-Excel/m-p/84668#M256898</guid>
      <dc:creator>jlaw</dc:creator>
      <dc:date>2013-07-23T19:17:37Z</dc:date>
    </item>
    <item>
      <title>Re: Export to specific cells in Excel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Export-to-specific-cells-in-Excel/m-p/84669#M256899</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here's the steps I used to automate my reports. You can copy the template for each report needed and then name them using a macro variable. The workbook in this case was .xlsm because there was a macro in the workbook that was used (via DDE) to open the workbook and export it to PDF reports in a later step. &lt;SPAN style="background: yellow;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: yellow;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: yellow;"&gt;Step 1:&lt;/SPAN&gt; First define your ranges where you want the tables to go. Try to name your ranges SAS compliant names (less than 32 characters, doesn’t start with a number/symbol) and not the same as the tab names in the worksheet.&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.dummies.com/how-to/content/how-to-name-a-cell-or-range-in-excel-2010.html"&gt;&lt;SPAN style="color: black;"&gt;http://www.dummies.com/how-to/content/how-to-name-a-cell&lt;SPAN style="color: black;"&gt;-or-range-in-excel-2010.html&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: yellow;"&gt;Step1a:&lt;/SPAN&gt; Copy the workbook&lt;/P&gt;&lt;P&gt;%sysexec copy&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "C:\Temp\Template_v48.xlsm"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "C:\Temp\Output\&amp;amp;file_name..xlsm";&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: yellow;"&gt;Step 2:&lt;/SPAN&gt; Link to workbook&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;libname sample excel &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: purple; background: white;"&gt;"&lt;/SPAN&gt;C:\Temp\Output\&amp;amp;file_name..xlsm&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: purple; background: white;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: yellow;"&gt;Step 3:&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; Clear the ranges to remove any old data (QA Step)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: green; background: white;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;proc sql;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; drop table sample.table1;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; drop table &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;sample.table2&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; drop table &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;sample.table3&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; drop table &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;sample.table4&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;quit;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: yellow;"&gt;Step 4:&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; Export data to worksheets&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;data &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;sample.table1&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set table1;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;data &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;sample.table2&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set table2;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;data &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;sample.table3&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set table4;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;data &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;sample.table4&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set table4;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: yellow;"&gt;Step 5:&lt;/SPAN&gt; Close workbook&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;libname sample;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jul 2013 19:49:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Export-to-specific-cells-in-Excel/m-p/84669#M256899</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2013-07-23T19:49:29Z</dc:date>
    </item>
    <item>
      <title>Re: Export to specific cells in Excel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Export-to-specific-cells-in-Excel/m-p/84670#M256900</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A __default_attr="811898" __jive_macro_name="user" class="jive_macro jive_macro_user" data-objecttype="3" href="https://communities.sas.com/"&gt;&lt;/A&gt;: You can also automate the code I suggested by combining it with &lt;A __default_attr="5068" __jive_macro_name="user" class="jive_macro jive_macro_user" data-objecttype="3" href="https://communities.sas.com/"&gt;&lt;/A&gt;'s suggestion of using DDE.&amp;nbsp; e.g.:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%let lib=sashelp;&lt;/P&gt;&lt;P&gt;%let mem=class;&lt;/P&gt;&lt;P&gt;filename clippy clipbrd;&lt;/P&gt;&lt;P&gt;data _null_;&lt;/P&gt;&lt;P&gt;&amp;nbsp; file clippy dsd dlm="09"x;&lt;/P&gt;&lt;P&gt;&amp;nbsp; set &amp;amp;lib..&amp;amp;mem.;&lt;/P&gt;&lt;P&gt;&amp;nbsp; put(_all_)(:);&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;filename clippy clear;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;options noxsync noxwait xmin;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;filename sas2xl dde 'excel|system';&lt;/P&gt;&lt;P&gt;data _null_;&lt;/P&gt;&lt;P&gt;&amp;nbsp; length fid rc start stop time 8;&lt;/P&gt;&lt;P&gt;&amp;nbsp; fid=fopen('sas2xl','s');&lt;/P&gt;&lt;P&gt;&amp;nbsp; if (fid le 0) then do;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; rc=system('start excel');&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; start=datetime();&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; stop=start+10;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; do while (fid le 0);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fid=fopen('sas2xl','s');&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; time=datetime();&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (time ge stop) then fid=1;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; end;&lt;/P&gt;&lt;P&gt;&amp;nbsp; end;&lt;/P&gt;&lt;P&gt;&amp;nbsp; rc=fclose(fid);&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data _null_;&lt;/P&gt;&lt;P&gt;&amp;nbsp; file sas2xl;&lt;/P&gt;&lt;P&gt;&amp;nbsp; put '[open("c:\art\template")]';&lt;/P&gt;&lt;P&gt;&amp;nbsp; put '[SELECT("R2C1")]';&lt;/P&gt;&lt;P&gt;&amp;nbsp; put '[PASTE()]';&lt;/P&gt;&lt;P&gt;&amp;nbsp; put '[error(false)]';&lt;/P&gt;&lt;P&gt;&amp;nbsp; put'[save.as("'"c:\art\&amp;amp;mem."'")]';&lt;/P&gt;&lt;P&gt;&amp;nbsp; put '[file.close(false)]';&lt;/P&gt;&lt;P&gt;&amp;nbsp; put '[quit()]';&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jul 2013 22:38:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Export-to-specific-cells-in-Excel/m-p/84670#M256900</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2013-07-23T22:38:29Z</dc:date>
    </item>
    <item>
      <title>Re: Export to specific cells in Excel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Export-to-specific-cells-in-Excel/m-p/344668#M256901</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you please send me a sample code to do it this way.&lt;/P&gt;
&lt;P&gt;--I understand the problems is to&amp;nbsp;send the dataset values in a specified named range in excel.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Santosh&lt;/P&gt;</description>
      <pubDate>Mon, 27 Mar 2017 15:37:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Export-to-specific-cells-in-Excel/m-p/344668#M256901</guid>
      <dc:creator>SP_SAS</dc:creator>
      <dc:date>2017-03-27T15:37:24Z</dc:date>
    </item>
    <item>
      <title>Re: Export to specific cells in Excel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Export-to-specific-cells-in-Excel/m-p/344678#M256902</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/28953"&gt;@SP_SAS&lt;/a&gt;: Sending data to a named range is easy. The problem is when one wants to export to a range that isn't predefined.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Somehow, I think the post you replied to (from 4 years ago) motivated&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/159"&gt;@Tom&lt;/a&gt;,&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/19924"&gt;@FriedEgg&lt;/a&gt;&amp;nbsp;and me to write a macro to accomplish such tasks. Take a look at:&amp;nbsp;&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;Art&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Mar 2017 16:03:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Export-to-specific-cells-in-Excel/m-p/344678#M256902</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2017-03-27T16:03:11Z</dc:date>
    </item>
    <item>
      <title>Re: Export to specific cells in Excel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Export-to-specific-cells-in-Excel/m-p/344689#M256903</link>
      <description>&lt;P&gt;I am trying to do this on Linux.&lt;/P&gt;
&lt;P&gt;Thanks. Can you also share with me how to "Sending data to a named range is easy" not using DDE.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Mar 2017 16:57:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Export-to-specific-cells-in-Excel/m-p/344689#M256903</guid>
      <dc:creator>SP_SAS</dc:creator>
      <dc:date>2017-03-27T16:57:23Z</dc:date>
    </item>
    <item>
      <title>Re: Export to specific cells in Excel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Export-to-specific-cells-in-Excel/m-p/344697#M256904</link>
      <description>&lt;P&gt;A solution, including references to a couple of papers describing it and alternatives, can be found at:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://stackoverflow.com/questions/32578013/exporting-sas-dataset-to-excel-named-ranges" target="_blank"&gt;http://stackoverflow.com/questions/32578013/exporting-sas-dataset-to-excel-named-ranges&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Mar 2017 17:09:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Export-to-specific-cells-in-Excel/m-p/344697#M256904</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2017-03-27T17:09:24Z</dc:date>
    </item>
  </channel>
</rss>

