<?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 add existing sheet in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/add-existing-sheet/m-p/92291#M9382</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have 2 excel workbooks each consisting of 1 sheet. and a 3rd workbook created with excelxp tagset that is roughly 20 tabs and 160+ pages (when exported to pdf)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;as always the process is as automated as possible at this point and i'm looking to finish it to 100% automated.&amp;nbsp; the issue is these 2 single sheet workbooks.&amp;nbsp; they are created manually by another team in excel and at a high level are nothing more than a list of acronyms and a distribution template.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is there a way from within SAS to populate the workbook created by my excelxp tagset procedure with these 2 sheets?&lt;/P&gt;&lt;P&gt;basically as it stands today&lt;/P&gt;&lt;P&gt;1. run tagset report&lt;/P&gt;&lt;P&gt;2. open tagset report &lt;/P&gt;&lt;P&gt;3. open definition report&lt;/P&gt;&lt;P&gt;4. copy sheet1 from definitions to tagset report&lt;/P&gt;&lt;P&gt;5. open media report&lt;/P&gt;&lt;P&gt;6. copy sheet 1 from media to tagset report&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what im hoping to get to:&lt;/P&gt;&lt;P&gt;1. run tagset report - code merges in definitions and media tab&lt;/P&gt;&lt;P&gt;2. profit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ive looked @ dde and having a template workbook with a VB macro that the code would run to open/copy automatically with something like this (this is my current path i'm looking into):&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(""&amp;amp;xlsTemplatePath."", 0 , true)]"; &lt;/P&gt;&lt;P&gt;&amp;nbsp; put "[run(""Macro1"")]"; &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>Mon, 23 Apr 2012 18:07:52 GMT</pubDate>
    <dc:creator>ja_lew</dc:creator>
    <dc:date>2012-04-23T18:07:52Z</dc:date>
    <item>
      <title>add existing sheet</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/add-existing-sheet/m-p/92291#M9382</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have 2 excel workbooks each consisting of 1 sheet. and a 3rd workbook created with excelxp tagset that is roughly 20 tabs and 160+ pages (when exported to pdf)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;as always the process is as automated as possible at this point and i'm looking to finish it to 100% automated.&amp;nbsp; the issue is these 2 single sheet workbooks.&amp;nbsp; they are created manually by another team in excel and at a high level are nothing more than a list of acronyms and a distribution template.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is there a way from within SAS to populate the workbook created by my excelxp tagset procedure with these 2 sheets?&lt;/P&gt;&lt;P&gt;basically as it stands today&lt;/P&gt;&lt;P&gt;1. run tagset report&lt;/P&gt;&lt;P&gt;2. open tagset report &lt;/P&gt;&lt;P&gt;3. open definition report&lt;/P&gt;&lt;P&gt;4. copy sheet1 from definitions to tagset report&lt;/P&gt;&lt;P&gt;5. open media report&lt;/P&gt;&lt;P&gt;6. copy sheet 1 from media to tagset report&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what im hoping to get to:&lt;/P&gt;&lt;P&gt;1. run tagset report - code merges in definitions and media tab&lt;/P&gt;&lt;P&gt;2. profit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ive looked @ dde and having a template workbook with a VB macro that the code would run to open/copy automatically with something like this (this is my current path i'm looking into):&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(""&amp;amp;xlsTemplatePath."", 0 , true)]"; &lt;/P&gt;&lt;P&gt;&amp;nbsp; put "[run(""Macro1"")]"; &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>Mon, 23 Apr 2012 18:07:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/add-existing-sheet/m-p/92291#M9382</guid>
      <dc:creator>ja_lew</dc:creator>
      <dc:date>2012-04-23T18:07:52Z</dc:date>
    </item>
    <item>
      <title>Re: add existing sheet</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/add-existing-sheet/m-p/92292#M9383</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can absolutely do that using SAS to create WSH programs to do "Office Automation".&amp;nbsp; You could even use DDE but I don't like it as much as writing a WSH program and calling it with SAS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, before you got too involved in that is itpossible/conceivable to import the two sheets in question into SAS and then recreate them in the new workbook(XML) created by tagsets.excelxp.&amp;nbsp; (If that makes sense?)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Apr 2012 19:20:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/add-existing-sheet/m-p/92292#M9383</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2012-04-23T19:20:23Z</dc:date>
    </item>
    <item>
      <title>Re: add existing sheet</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/add-existing-sheet/m-p/92293#M9384</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;it IS possible to pull the 2 sheets into sas and recreate (this was where i started) however with how dynamic the 2 sheets are it would be less efficient (as well as non-automated) with having to re-code new tweaks each week.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Apr 2012 19:24:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/add-existing-sheet/m-p/92293#M9384</guid>
      <dc:creator>ja_lew</dc:creator>
      <dc:date>2012-04-23T19:24:39Z</dc:date>
    </item>
  </channel>
</rss>

