<?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 export an excel file to a specific workbook on my i drive? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-export-an-excel-file-to-a-specific-workbook-on-my-i-drive/m-p/817191#M322555</link>
    <description>&lt;P&gt;If you are expecting SAS to paste something into the middle of an existing worksheet then that won't work.&lt;/P&gt;
&lt;P&gt;Instead of SAS write to a new worksheet.&lt;/P&gt;
&lt;P&gt;Then modify your Excel workbook to use whatever data it finds there (or copy it where it needs it).&lt;/P&gt;</description>
    <pubDate>Wed, 08 Jun 2022 18:08:19 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2022-06-08T18:08:19Z</dc:date>
    <item>
      <title>How to export an excel file to a specific workbook on my i drive?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-export-an-excel-file-to-a-specific-workbook-on-my-i-drive/m-p/817185#M322550</link>
      <description>&lt;P&gt;Hello, I have a project that I run in SAS and then export the tables into differernt excel sheets. I first do a proc export to my folder in SAS, then do another proc export to the lcoal i drive. I have a excel workbook that is stored on my i that I use to create visuals. How can I get the proc export that I drop to the i drive to land in the workbook with&amp;nbsp; my visuals&amp;nbsp;so I odn't have to copy and paste data into excel. I hope this makes sense if I need to clarify more please let me know. Below is my proc export code Thank you. currently the files do not drop into my to excel workbook and I do not know why&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc export data=Apps_Per_Agent outfile="/u/&amp;amp;sysuserid./Apps_Per_Agent.xlsx"
replace dbms=xlsx;
sheet="Apps_Per_Agent";

proc export data=Apps_Per_Agent 
outfile= "I:\Health Business Operations\Channel Service Organization\DARU\01 - Reporting Tools\Medicare Sales Agencies\VBA Code for email\Scorecard VBA for Email and PDF\Medicare Scorecard TOH.xlsm"
dbms=xlsx
replace; 
sheet="Apps_Per_Agent";
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 08 Jun 2022 17:40:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-export-an-excel-file-to-a-specific-workbook-on-my-i-drive/m-p/817185#M322550</guid>
      <dc:creator>LMSSAS</dc:creator>
      <dc:date>2022-06-08T17:40:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to export an excel file to a specific workbook on my i drive?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-export-an-excel-file-to-a-specific-workbook-on-my-i-drive/m-p/817190#M322554</link>
      <description>&lt;P&gt;Personally, I much prefer "visuals" from SAS code directly. The use ODS EXCEL or similar to put the graphs and data into a report file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Export, as I expect you have found, will replace files.&lt;/P&gt;
&lt;P&gt;You can try using the LIBNAME xlsx to write data into an existing file to replace an existing sheet. You may still need to refresh links between your "visuals" and the data.&lt;/P&gt;
&lt;P&gt;I hope you didn't place the visual and the data on the same sheet. That would likely make this extremely difficult.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jun 2022 18:07:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-export-an-excel-file-to-a-specific-workbook-on-my-i-drive/m-p/817190#M322554</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2022-06-08T18:07:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to export an excel file to a specific workbook on my i drive?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-export-an-excel-file-to-a-specific-workbook-on-my-i-drive/m-p/817191#M322555</link>
      <description>&lt;P&gt;If you are expecting SAS to paste something into the middle of an existing worksheet then that won't work.&lt;/P&gt;
&lt;P&gt;Instead of SAS write to a new worksheet.&lt;/P&gt;
&lt;P&gt;Then modify your Excel workbook to use whatever data it finds there (or copy it where it needs it).&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jun 2022 18:08:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-export-an-excel-file-to-a-specific-workbook-on-my-i-drive/m-p/817191#M322555</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2022-06-08T18:08:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to export an excel file to a specific workbook on my i drive?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-export-an-excel-file-to-a-specific-workbook-on-my-i-drive/m-p/817193#M322556</link>
      <description>No, I didn't place the visuals and data on the same sheet. I will try using the Libname, I just want to replce the existing sheets in the workbook each week when I run the program so I don't have to copy and paste the new data evey week. I can go in and refresh the data in the workbook. Thank you!!</description>
      <pubDate>Wed, 08 Jun 2022 18:14:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-export-an-excel-file-to-a-specific-workbook-on-my-i-drive/m-p/817193#M322556</guid>
      <dc:creator>LMSSAS</dc:creator>
      <dc:date>2022-06-08T18:14:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to export an excel file to a specific workbook on my i drive?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-export-an-excel-file-to-a-specific-workbook-on-my-i-drive/m-p/817194#M322557</link>
      <description>ok, thank you!</description>
      <pubDate>Wed, 08 Jun 2022 18:15:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-export-an-excel-file-to-a-specific-workbook-on-my-i-drive/m-p/817194#M322557</guid>
      <dc:creator>LMSSAS</dc:creator>
      <dc:date>2022-06-08T18:15:05Z</dc:date>
    </item>
  </channel>
</rss>

