<?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: How to autorefresh Excel based on SAS generated csv file? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-autorefresh-Excel-based-on-SAS-generated-csv-file/m-p/341125#M78028</link>
    <description>&lt;P&gt;Instead of CSV, you could generate html which can be opened in excel.&lt;/P&gt;</description>
    <pubDate>Wed, 15 Mar 2017 10:22:18 GMT</pubDate>
    <dc:creator>gamotte</dc:creator>
    <dc:date>2017-03-15T10:22:18Z</dc:date>
    <item>
      <title>How to autorefresh Excel based on SAS generated csv file?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-autorefresh-Excel-based-on-SAS-generated-csv-file/m-p/341121#M78024</link>
      <description>&lt;P&gt;I want to send out a monthly report which the numbers are generated by SAS and then PROC EXPORT to a csv file.&lt;/P&gt;&lt;P&gt;The csv file typically looks like below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/7756iB00F1B9F7F191EAB/image-size/original?v=1.0&amp;amp;px=-1" border="0" alt="csv simple.PNG" title="csv simple.PNG" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, this is not the final output as there's an Excel file with a nice looking template which looks like this.&lt;/P&gt;&lt;P&gt;The Excel file also contains a formula like MOM% (month over month).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/7757i46BA7F21C551216B/image-size/original?v=1.0&amp;amp;px=-1" border="0" alt="excel template to fill.PNG" title="excel template to fill.PNG" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I want is, to link both. So that, the better looking Excel will automatically fill in the values based on the csv file generated by SAS.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example, if I run the March numbers, the better looking Excel will then be filled with the new numbers generated by SAS.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any advice on how to do so?&lt;/P&gt;</description>
      <pubDate>Wed, 15 Mar 2017 09:38:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-autorefresh-Excel-based-on-SAS-generated-csv-file/m-p/341121#M78024</guid>
      <dc:creator>afiqcjohari</dc:creator>
      <dc:date>2017-03-15T09:38:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to autorefresh Excel based on SAS generated csv file?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-autorefresh-Excel-based-on-SAS-generated-csv-file/m-p/341122#M78025</link>
      <description>&lt;P&gt;Then you want a VBA/Excel forum. &amp;nbsp;This has nothing to do with SAS. &amp;nbsp;For your reference, and OnOpen() function can load the data and process it anyhows you like:&lt;/P&gt;
&lt;P&gt;First Google result:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://sitestory.dk/excel_vba/csv-file-import.htm" target="_blank"&gt;http://sitestory.dk/excel_vba/csv-file-import.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can overwrite data in place or process in code.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Mar 2017 09:56:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-autorefresh-Excel-based-on-SAS-generated-csv-file/m-p/341122#M78025</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2017-03-15T09:56:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to autorefresh Excel based on SAS generated csv file?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-autorefresh-Excel-based-on-SAS-generated-csv-file/m-p/341125#M78028</link>
      <description>&lt;P&gt;Instead of CSV, you could generate html which can be opened in excel.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Mar 2017 10:22:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-autorefresh-Excel-based-on-SAS-generated-csv-file/m-p/341125#M78028</guid>
      <dc:creator>gamotte</dc:creator>
      <dc:date>2017-03-15T10:22:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to autorefresh Excel based on SAS generated csv file?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-autorefresh-Excel-based-on-SAS-generated-csv-file/m-p/341126#M78029</link>
      <description>I don't think investing my time learning VBA is worthy at this point. Could you please advise whether similar template can be generated in SAS?</description>
      <pubDate>Wed, 15 Mar 2017 10:22:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-autorefresh-Excel-based-on-SAS-generated-csv-file/m-p/341126#M78029</guid>
      <dc:creator>afiqcjohari</dc:creator>
      <dc:date>2017-03-15T10:22:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to autorefresh Excel based on SAS generated csv file?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-autorefresh-Excel-based-on-SAS-generated-csv-file/m-p/341129#M78030</link>
      <description>&lt;P&gt;You have stated that you have a template file that you need to updated with CSV data - at no point in this part of the process anything to with SAS. &amp;nbsp;Hence you would use Excel (and VBA which is a core component of Excel which you should know if you use it - it can even record the code for you, you don't need to know it!) to import and process the data. &amp;nbsp;There is no magic button in SAS to control external applications. &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You could of course look at it the other way round, why do you want output like that specifically? &amp;nbsp;You could generate the output Excel file using tagsets.excelxp for instance to get all the formatting and such like, just process the data in SAS, create a dataset which looks like your output file, then proc report to that tagset. &amp;nbsp;This would work fine if its just a plain Excel file as you give, but then you would have the template file, it would be generated from SAS.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Need to clarify what you want exactly, and restrictions.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/30622"&gt;@gamotte&lt;/a&gt;, not sure how exporting to HTML would help any, Excel would still need to open and process the imported data.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Mar 2017 10:29:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-autorefresh-Excel-based-on-SAS-generated-csv-file/m-p/341129#M78030</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2017-03-15T10:29:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to autorefresh Excel based on SAS generated csv file?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-autorefresh-Excel-based-on-SAS-generated-csv-file/m-p/341135#M78032</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/45151"&gt;@RW9&lt;/a&gt;, my point was that the excel template could be replaced by css rules or SAS style&lt;/P&gt;
&lt;P&gt;(or using tagsets.excelxp as you propose).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I missed the real time data feed part of the request. I have heard of DDE links but never used them&lt;/P&gt;
&lt;P&gt;so i could not tell if that answers the question.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Mar 2017 11:21:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-autorefresh-Excel-based-on-SAS-generated-csv-file/m-p/341135#M78032</guid>
      <dc:creator>gamotte</dc:creator>
      <dc:date>2017-03-15T11:21:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to autorefresh Excel based on SAS generated csv file?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-autorefresh-Excel-based-on-SAS-generated-csv-file/m-p/341136#M78033</link>
      <description>&lt;P&gt;Yes, DDE is still around, however it is decades old from being supported, and doesnt work in some setups. &amp;nbsp;I wouldn't recommend it. &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Mar 2017 11:31:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-autorefresh-Excel-based-on-SAS-generated-csv-file/m-p/341136#M78033</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2017-03-15T11:31:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to autorefresh Excel based on SAS generated csv file?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-autorefresh-Excel-based-on-SAS-generated-csv-file/m-p/341317#M78097</link>
      <description>&lt;P&gt;Or ODS Tagsets.excelxp creates formatted tables that Excel can open.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;or ODS Excel.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Proc report or Proc tabulate could make a table that looks like that without the export and re-read approach. Just write direct to file.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Mar 2017 19:37:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-autorefresh-Excel-based-on-SAS-generated-csv-file/m-p/341317#M78097</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-03-15T19:37:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to autorefresh Excel based on SAS generated csv file?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-autorefresh-Excel-based-on-SAS-generated-csv-file/m-p/341406#M78131</link>
      <description>The CSV data is the output of SAS scripts. So the process uses SAS to calculate the raw numbers and output this out into a CSV file.&lt;BR /&gt;&lt;BR /&gt;The idea is to automate the whole process using mainly SAS. If this requires VBA, I think a copy and paste is much faster. Could be wrong as I haven't coded in VBA for years.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 16 Mar 2017 03:11:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-autorefresh-Excel-based-on-SAS-generated-csv-file/m-p/341406#M78131</guid>
      <dc:creator>afiqcjohari</dc:creator>
      <dc:date>2017-03-16T03:11:23Z</dc:date>
    </item>
  </channel>
</rss>

