<?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: Using DDE with excel in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Using-DDE-with-excel/m-p/754612#M238002</link>
    <description>You'll have to check the documentation then, I'm making an educated guess based on the code I've seen. &lt;BR /&gt;Are you sure you can't use ODS EXCEL instead of DDE?</description>
    <pubDate>Fri, 16 Jul 2021 15:30:25 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2021-07-16T15:30:25Z</dc:date>
    <item>
      <title>Using DDE with excel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Using-DDE-with-excel/m-p/754599#M237996</link>
      <description>&lt;P&gt;Hello, I'm running the following program and running into an issue within excel.&amp;nbsp; When SAS processing the line&amp;nbsp;&lt;STRONG&gt;put '[formula.fill("=SUM(U2:U299)/1000")]';&amp;nbsp;&lt;/STRONG&gt;excel gives me the following message.&amp;nbsp; Not sure where I'm going wrong here..&amp;nbsp; Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="aamoen_0-1626446231167.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/61298i7CF44A762EB63633/image-size/medium?v=v2&amp;amp;px=400" role="button" title="aamoen_0-1626446231167.png" alt="aamoen_0-1626446231167.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Filename cmds dde 'excel|system';&lt;BR /&gt;Data _null_;&lt;BR /&gt;File cmds;&lt;BR /&gt;Put '[workbook.activate("MB")]';&lt;BR /&gt;Put '[select("R300C20")]';&lt;BR /&gt;put '[formula.fill("Sum of Acquisition Cost and Carrying Value")]';&lt;/P&gt;&lt;P&gt;put '[select("R301C20")]';&lt;BR /&gt;put '[formula.fill("From Sch A, col A, line M.2 &amp;amp; Sch A, col D, line M.2")]';&lt;/P&gt;&lt;P&gt;put '[select("R302C20")]';&lt;BR /&gt;put '[formula.fill("Check, must be zero")]';&lt;/P&gt;&lt;P&gt;put '[select("R300C21")]';&lt;BR /&gt;&lt;STRONG&gt;put '[formula.fill("=SUM(U2:U299)/1000")]';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;put '[select("R300C66")]';&lt;BR /&gt;put '[formula.fill("=SUM(BN2:BN299)/1000")]';&lt;/P&gt;&lt;P&gt;put '[select("R301C21")]';&lt;BR /&gt;put '[formula.fill("='Schedule A'!G16")]';&lt;/P&gt;&lt;P&gt;put '[select("R302C21")]';&lt;BR /&gt;put '[formula.fill("=U300-U301")]';&lt;/P&gt;&lt;P&gt;put '[select("R301C66")]';&lt;BR /&gt;put '[formula.fill("='Schedule A'!J16")]';&lt;/P&gt;&lt;P&gt;put '[select("R302C66")]';&lt;BR /&gt;put '[formula.fill("=BN300-BN301")]';&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Jul 2021 14:38:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Using-DDE-with-excel/m-p/754599#M237996</guid>
      <dc:creator>aamoen</dc:creator>
      <dc:date>2021-07-16T14:38:03Z</dc:date>
    </item>
    <item>
      <title>Re: Using DDE with excel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Using-DDE-with-excel/m-p/754607#M237998</link>
      <description>I think formula.fill is correct but don't you need to use the RC notation, not the cell reference notation for DDE?&lt;BR /&gt;&lt;BR /&gt;See page 14 here&lt;BR /&gt;&lt;A href="https://support.sas.com/resources/papers/proceedings/proceedings/sugi31/022-31.pdf" target="_blank"&gt;https://support.sas.com/resources/papers/proceedings/proceedings/sugi31/022-31.pdf&lt;/A&gt;</description>
      <pubDate>Fri, 16 Jul 2021 15:14:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Using-DDE-with-excel/m-p/754607#M237998</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-07-16T15:14:25Z</dc:date>
    </item>
    <item>
      <title>Re: Using DDE with excel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Using-DDE-with-excel/m-p/754608#M237999</link>
      <description>And formula.fill appears to have two parameters - one is the formula, the second appears to be the range it should fill, which makes sense given the FILL.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 16 Jul 2021 15:15:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Using-DDE-with-excel/m-p/754608#M237999</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-07-16T15:15:54Z</dc:date>
    </item>
    <item>
      <title>Re: Using DDE with excel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Using-DDE-with-excel/m-p/754609#M238000</link>
      <description>Okay. I thought the put, select directly above determined the cell within excel to fill the formula.&lt;BR /&gt;&lt;BR /&gt;put '[select("R300C21")]';&lt;BR /&gt;put '[formula.fill("=SUM(U2:U299)/1000")]';</description>
      <pubDate>Fri, 16 Jul 2021 15:20:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Using-DDE-with-excel/m-p/754609#M238000</guid>
      <dc:creator>aamoen</dc:creator>
      <dc:date>2021-07-16T15:20:13Z</dc:date>
    </item>
    <item>
      <title>Re: Using DDE with excel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Using-DDE-with-excel/m-p/754612#M238002</link>
      <description>You'll have to check the documentation then, I'm making an educated guess based on the code I've seen. &lt;BR /&gt;Are you sure you can't use ODS EXCEL instead of DDE?</description>
      <pubDate>Fri, 16 Jul 2021 15:30:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Using-DDE-with-excel/m-p/754612#M238002</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-07-16T15:30:25Z</dc:date>
    </item>
    <item>
      <title>Re: Using DDE with excel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Using-DDE-with-excel/m-p/754614#M238004</link>
      <description>yep, that was it. Need to use the RC notation, not the cell reference.&lt;BR /&gt;&lt;BR /&gt;Thank you!</description>
      <pubDate>Fri, 16 Jul 2021 15:33:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Using-DDE-with-excel/m-p/754614#M238004</guid>
      <dc:creator>aamoen</dc:creator>
      <dc:date>2021-07-16T15:33:06Z</dc:date>
    </item>
  </channel>
</rss>

