<?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: Update Excel Sheet in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Update-Excel-Sheet/m-p/727012#M226031</link>
    <description>&lt;P&gt;&lt;SPAN&gt;1. Replace entire report with a formatted report from ODS EXCEL&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Re :&amp;nbsp;&lt;SPAN&gt;I won't rewriting all formulas, even complex . In this way my colleagues can modify the formulas without knowing sas&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;2. Update your Excel template to use Tables and update your SASOUT table only and change it to allow the rest to flow through so step 2-4 should disappear. You can use FCOPY to copy the template to a new file.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;RE:&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;The problem is that the length of the sasout is not standard&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;SPAN&gt;3. Investigate requirements again and see if another tool is more appropriate, such as a BI tool like Visual Analytics (Tableau/PowerBI).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;RE: unavaible&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I find a code that use VBA for modify excel:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;options noxwait noxsync;&lt;BR /&gt;%let vba_loc=%sysfunc(getoption(WORK))\vbscript.vbs;&lt;BR /&gt;%let open_workbook = &amp;amp;path.\Analisi\Test.xlsx;&lt;BR /&gt;data _null_;&lt;BR /&gt;file "&amp;amp;vba_loc";&lt;BR /&gt;put "Set objExcel = CreateObject(""Excel.Application"") ";&lt;BR /&gt;put "objExcel.Visible = True ";&lt;BR /&gt;put "objExcel.DisplayAlerts=False";&lt;BR /&gt;put "Set wb = objExcel.Workbooks.Open(""&amp;amp;open_workbook"")";&lt;BR /&gt;put "wb.sheets(""headings"").Range(""B12"") = ""Prova""";&lt;BR /&gt;put "wb.save";&lt;BR /&gt;x "'&amp;amp;vba_loc\'";&lt;BR /&gt;run;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;But I haven't found everything I need. It can be a solution ?&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 17 Mar 2021 08:07:55 GMT</pubDate>
    <dc:creator>EnricoCola</dc:creator>
    <dc:date>2021-03-17T08:07:55Z</dc:date>
    <item>
      <title>Update Excel Sheet</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Update-Excel-Sheet/m-p/726832#M225913</link>
      <description>&lt;P&gt;Hi, I'm trying to update an excel file. This file is a pre-formatted template that I use as stencil to generate multiple files. It contains several sheets, a sheet in which there is a sasout and others that have formulas with links to the first. These sheets are small reports and have a header and a table with few rows that should be replicated depending on the number of rows in the db sas.&lt;BR /&gt;The steps to take are as follows:&lt;BR /&gt;1- Update the sasout sheet&lt;BR /&gt;2- Copy the rows present in the report sheet&lt;BR /&gt;3- Select n rows according to the number of rows of the SAS db&lt;BR /&gt;4- Insert the copied lines&lt;/P&gt;&lt;P&gt;Are there alternative methods to DDE?&lt;BR /&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Tue, 16 Mar 2021 16:57:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Update-Excel-Sheet/m-p/726832#M225913</guid>
      <dc:creator>EnricoCola</dc:creator>
      <dc:date>2021-03-16T16:57:24Z</dc:date>
    </item>
    <item>
      <title>Re: Update Excel Sheet</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Update-Excel-Sheet/m-p/726849#M225923</link>
      <description>1. Replace entire report with a formatted report from ODS EXCEL&lt;BR /&gt;2. Update your Excel template to use Tables and update your SASOUT table only and change it to allow the rest to flow through so step 2-4 should disappear. You can use FCOPY to copy the template to a new file. &lt;BR /&gt;3. Investigate requirements again and see if another tool is more appropriate, such as a BI tool like Visual Analytics (Tableau/PowerBI).&lt;BR /&gt;</description>
      <pubDate>Tue, 16 Mar 2021 18:06:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Update-Excel-Sheet/m-p/726849#M225923</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-03-16T18:06:07Z</dc:date>
    </item>
    <item>
      <title>Re: Update Excel Sheet</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Update-Excel-Sheet/m-p/726872#M225936</link>
      <description>&lt;P&gt;Another way to easily update an Excel Sheet is to use the SAS Add-in to MS Office. You are required to run the update tasks manually though from the SAS Menu in Excel.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Mar 2021 19:09:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Update-Excel-Sheet/m-p/726872#M225936</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2021-03-16T19:09:44Z</dc:date>
    </item>
    <item>
      <title>Re: Update Excel Sheet</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Update-Excel-Sheet/m-p/727012#M226031</link>
      <description>&lt;P&gt;&lt;SPAN&gt;1. Replace entire report with a formatted report from ODS EXCEL&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Re :&amp;nbsp;&lt;SPAN&gt;I won't rewriting all formulas, even complex . In this way my colleagues can modify the formulas without knowing sas&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;2. Update your Excel template to use Tables and update your SASOUT table only and change it to allow the rest to flow through so step 2-4 should disappear. You can use FCOPY to copy the template to a new file.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;RE:&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;The problem is that the length of the sasout is not standard&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;SPAN&gt;3. Investigate requirements again and see if another tool is more appropriate, such as a BI tool like Visual Analytics (Tableau/PowerBI).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;RE: unavaible&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I find a code that use VBA for modify excel:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;options noxwait noxsync;&lt;BR /&gt;%let vba_loc=%sysfunc(getoption(WORK))\vbscript.vbs;&lt;BR /&gt;%let open_workbook = &amp;amp;path.\Analisi\Test.xlsx;&lt;BR /&gt;data _null_;&lt;BR /&gt;file "&amp;amp;vba_loc";&lt;BR /&gt;put "Set objExcel = CreateObject(""Excel.Application"") ";&lt;BR /&gt;put "objExcel.Visible = True ";&lt;BR /&gt;put "objExcel.DisplayAlerts=False";&lt;BR /&gt;put "Set wb = objExcel.Workbooks.Open(""&amp;amp;open_workbook"")";&lt;BR /&gt;put "wb.sheets(""headings"").Range(""B12"") = ""Prova""";&lt;BR /&gt;put "wb.save";&lt;BR /&gt;x "'&amp;amp;vba_loc\'";&lt;BR /&gt;run;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;But I haven't found everything I need. It can be a solution ?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Mar 2021 08:07:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Update-Excel-Sheet/m-p/727012#M226031</guid>
      <dc:creator>EnricoCola</dc:creator>
      <dc:date>2021-03-17T08:07:55Z</dc:date>
    </item>
    <item>
      <title>Re: Update Excel Sheet</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Update-Excel-Sheet/m-p/727014#M226032</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I have considered this solution, but with the new version of excel installed, the Add-In are not available.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Mar 2021 08:11:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Update-Excel-Sheet/m-p/727014#M226032</guid>
      <dc:creator>EnricoCola</dc:creator>
      <dc:date>2021-03-17T08:11:25Z</dc:date>
    </item>
    <item>
      <title>Re: Update Excel Sheet</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Update-Excel-Sheet/m-p/727016#M226033</link>
      <description>&lt;P&gt;Doing BI work in Excel when SAS is at hand is at best stupid. Excel provides so many opportunities for undetected mistakes that I (and I am not alone in this) consider using it for business critical tasks as gross negligence.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In our company, internal audit works hard at preventing such practice.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I second what others have suggested: move the whole calculation into SAS, and use Excel for presentation only.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Mar 2021 08:17:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Update-Excel-Sheet/m-p/727016#M226033</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2021-03-17T08:17:32Z</dc:date>
    </item>
    <item>
      <title>Re: Update Excel Sheet</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Update-Excel-Sheet/m-p/727026#M226039</link>
      <description>&lt;P&gt;I second what everyone else has said about moving the whole solution to SAs instead.&lt;/P&gt;
&lt;P&gt;However, if that is not possible for some reason, you might want to look at the following two documents they might set you in the right direction.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.sas.com/content/dam/SAS/en_ca/User%20Group%20Presentations/Edmonton-User-Group/FareezaKhurshed-CoordinateComplexReports-Spring2014.pdf" target="_blank"&gt;https://www.sas.com/content/dam/SAS/en_ca/User%20Group%20Presentations/Edmonton-User-Group/FareezaKhurshed-CoordinateComplexReports-Spring2014.pdf&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://support.sas.com/resources/papers/proceedings14/1793-2014.pdf" target="_blank"&gt;https://support.sas.com/resources/papers/proceedings14/1793-2014.pdf&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Kind regards&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Mar 2021 08:49:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Update-Excel-Sheet/m-p/727026#M226039</guid>
      <dc:creator>ammarhm</dc:creator>
      <dc:date>2021-03-17T08:49:22Z</dc:date>
    </item>
    <item>
      <title>Re: Update Excel Sheet</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Update-Excel-Sheet/m-p/727027#M226040</link>
      <description>&lt;P&gt;Thanks for the advice, unfortunately I face different opinions and habits that I am not able to eradicate. So I must find other solutions that satisfy my customers&lt;/P&gt;</description>
      <pubDate>Wed, 17 Mar 2021 08:52:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Update-Excel-Sheet/m-p/727027#M226040</guid>
      <dc:creator>EnricoCola</dc:creator>
      <dc:date>2021-03-17T08:52:12Z</dc:date>
    </item>
    <item>
      <title>Re: Update Excel Sheet</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Update-Excel-Sheet/m-p/727147#M226091</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/374159"&gt;@EnricoCola&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;2. Update your Excel template to use Tables and update your SASOUT table only and change it to allow the rest to flow through so step 2-4 should disappear. You can use FCOPY to copy the template to a new file.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;RE:&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;The problem is that the length of the sasout is not standard&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;The new Tables feature in Excel makes that a moot point, the table grows as the data does.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/374159"&gt;@EnricoCola&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&lt;SPAN&gt;1. Replace entire report with a formatted report from ODS EXCEL&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Re :&amp;nbsp;&lt;SPAN&gt;I won't rewriting all formulas, even complex . In this way my colleagues can modify the formulas without knowing sas&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;ODS Excel allows you to write formulas to cells, not just raw data, so your colleagues maintain their ability to update the file.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Mar 2021 15:57:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Update-Excel-Sheet/m-p/727147#M226091</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-03-17T15:57:32Z</dc:date>
    </item>
    <item>
      <title>Re: Update Excel Sheet</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Update-Excel-Sheet/m-p/727154#M226097</link>
      <description>&lt;P&gt;Thanks, I try to use ODS&lt;/P&gt;</description>
      <pubDate>Wed, 17 Mar 2021 16:05:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Update-Excel-Sheet/m-p/727154#M226097</guid>
      <dc:creator>EnricoCola</dc:creator>
      <dc:date>2021-03-17T16:05:34Z</dc:date>
    </item>
  </channel>
</rss>

