<?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: Excel vba script to combine diff workbooks in Microsoft Integration with SAS</title>
    <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Excel-vba-script-to-combine-diff-workbooks/m-p/161704#M1462</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;VBScript is not VBA and is not "containted" in the workbook. &lt;/P&gt;&lt;P&gt;&lt;A href="http://en.wikipedia.org/wiki/VBScript" title="http://en.wikipedia.org/wiki/VBScript"&gt;VBScript - Wikipedia, the free encyclopedia&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" class="active_link" href="https://communities.sas.com/message/128928#128928"&gt;https://communities.sas.com/message/128928#128928&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" class="active_link" href="https://communities.sas.com/message/124373#124373"&gt;https://communities.sas.com/message/124373#124373&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have posted other examples.&amp;nbsp; If you search for CSCRIPT you find more examples.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 02 Dec 2013 22:30:34 GMT</pubDate>
    <dc:creator>data_null__</dc:creator>
    <dc:date>2013-12-02T22:30:34Z</dc:date>
    <item>
      <title>Excel vba script to combine diff workbooks</title>
      <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Excel-vba-script-to-combine-diff-workbooks/m-p/161696#M1454</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i have 3 excel workbooks and each have different sheets. I need to create a new workbook by adding one specific sheet from each workbook.&lt;/P&gt;&lt;P&gt;so, to, iam kinda new to vb scripting and would appreciate your help.&lt;/P&gt;&lt;P&gt;i Will be executing the vb script in data null using x statement in windows sas 9.2.&lt;/P&gt;&lt;P&gt;Eshan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Dec 2013 20:24:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Excel-vba-script-to-combine-diff-workbooks/m-p/161696#M1454</guid>
      <dc:creator>Eshan</dc:creator>
      <dc:date>2013-12-02T20:24:09Z</dc:date>
    </item>
    <item>
      <title>Re: Excel vba script to combine diff workbooks</title>
      <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Excel-vba-script-to-combine-diff-workbooks/m-p/161697#M1455</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is your question?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Dec 2013 20:49:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Excel-vba-script-to-combine-diff-workbooks/m-p/161697#M1455</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2013-12-02T20:49:53Z</dc:date>
    </item>
    <item>
      <title>Re: Excel vba script to combine diff workbooks</title>
      <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Excel-vba-script-to-combine-diff-workbooks/m-p/161698#M1456</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, right now i am manually copying 3 sheets from 3 different workbooks and creating a new workbook.&lt;/P&gt;&lt;P&gt;The reason i want the vbscript is to automate the program and remove the manual manipulation in excel.&lt;/P&gt;&lt;P&gt;So, i need a vbscript to execute in sas so that the sas program can be completely automated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Dec 2013 21:00:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Excel-vba-script-to-combine-diff-workbooks/m-p/161698#M1456</guid>
      <dc:creator>Eshan</dc:creator>
      <dc:date>2013-12-02T21:00:23Z</dc:date>
    </item>
    <item>
      <title>Re: Excel vba script to combine diff workbooks</title>
      <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Excel-vba-script-to-combine-diff-workbooks/m-p/161699#M1457</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1. Where do these worksheets come from? IE Is there a way to avoid this problem in the first place.&lt;/P&gt;&lt;P&gt;2. Why is SAS involved if it's solely moving around worksheets?&lt;/P&gt;&lt;P&gt;3. Is the VB Script already embedded in a workbook and you need to excute it or does the VB Script need to be added in to a workbook?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Dec 2013 21:09:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Excel-vba-script-to-combine-diff-workbooks/m-p/161699#M1457</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2013-12-02T21:09:04Z</dc:date>
    </item>
    <item>
      <title>Re: Excel vba script to combine diff workbooks</title>
      <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Excel-vba-script-to-combine-diff-workbooks/m-p/161700#M1458</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The worksheets are generated in for example report1.sas program by adding lots of proc tabulates and some graphs and routing that ouput into 3 diff excel workbooks.&lt;/P&gt;&lt;P&gt;So, now my purpose is i am trying to automate this sas job completely but i dont know how to automate the last piece where i need to create this new workbook by&lt;/P&gt;&lt;P&gt;copying sheets from the above workbooks&lt;/P&gt;&lt;P&gt;So, thats the reason i was thinking of creating a vb script which looks into the already generated 3 workbooks in the designated path and takes one sheet from each workbook and creates a new workbook with 3 sheets.&lt;/P&gt;&lt;P&gt;There could be multiple ways but i just thought vb script may help too. And I am planning to use this vbscript at the end of the report1.sas program.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008000; font-size: 10pt; font-family: Courier New;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;%let vbs = ""path\sample.vbs""; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data _null_;&lt;/P&gt;&lt;P&gt; x "&amp;amp;vbs";&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eshan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Dec 2013 21:22:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Excel-vba-script-to-combine-diff-workbooks/m-p/161700#M1458</guid>
      <dc:creator>Eshan</dc:creator>
      <dc:date>2013-12-02T21:22:04Z</dc:date>
    </item>
    <item>
      <title>Re: Excel vba script to combine diff workbooks</title>
      <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Excel-vba-script-to-combine-diff-workbooks/m-p/161701#M1459</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Best solution: reorder your project output, if necessary look into GREPLAY to control when your output goes to Excel so it gets combined straight out of excel&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF the VBS script has all the parameters you don't need a data _null_ step, simply :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%sysexec "&amp;amp;vbs";&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Dec 2013 21:38:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Excel-vba-script-to-combine-diff-workbooks/m-p/161701#M1459</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2013-12-02T21:38:13Z</dc:date>
    </item>
    <item>
      <title>Re: Excel vba script to combine diff workbooks</title>
      <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Excel-vba-script-to-combine-diff-workbooks/m-p/161702#M1460</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i do need the 3 workbooks and i also need the new workbook with all the sheets from the 3 workbooks so i am not quiet sure how to route the output in to these final various excel reports.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1st workbook usess 5 proc tabulates and routes to workbook1.xls with sheet = sheet1&lt;/P&gt;&lt;P&gt;2nd workbook uses one proc gplot and routes to workbook2.xls with sheet = sheet2&lt;/P&gt;&lt;P&gt;3rd workbook uses one proc gplot and routes to workbook3.xls with sheet = sheet3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So now i also need a new workbook(workbook_final) with sheet1, sheet2 and sheet3 from above workbooks and i am kindaa lost here to achieve this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Dec 2013 21:49:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Excel-vba-script-to-combine-diff-workbooks/m-p/161702#M1460</guid>
      <dc:creator>Eshan</dc:creator>
      <dc:date>2013-12-02T21:49:18Z</dc:date>
    </item>
    <item>
      <title>Re: Excel vba script to combine diff workbooks</title>
      <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Excel-vba-script-to-combine-diff-workbooks/m-p/161703#M1461</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Graphics/GPLOT don't export to Excel, so can you explain further what's happening in the second and third workbook.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Dec 2013 22:20:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Excel-vba-script-to-combine-diff-workbooks/m-p/161703#M1461</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2013-12-02T22:20:28Z</dc:date>
    </item>
    <item>
      <title>Re: Excel vba script to combine diff workbooks</title>
      <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Excel-vba-script-to-combine-diff-workbooks/m-p/161704#M1462</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;VBScript is not VBA and is not "containted" in the workbook. &lt;/P&gt;&lt;P&gt;&lt;A href="http://en.wikipedia.org/wiki/VBScript" title="http://en.wikipedia.org/wiki/VBScript"&gt;VBScript - Wikipedia, the free encyclopedia&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" class="active_link" href="https://communities.sas.com/message/128928#128928"&gt;https://communities.sas.com/message/128928#128928&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" class="active_link" href="https://communities.sas.com/message/124373#124373"&gt;https://communities.sas.com/message/124373#124373&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have posted other examples.&amp;nbsp; If you search for CSCRIPT you find more examples.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Dec 2013 22:30:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Excel-vba-script-to-combine-diff-workbooks/m-p/161704#M1462</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2013-12-02T22:30:34Z</dc:date>
    </item>
    <item>
      <title>Re: Excel vba script to combine diff workbooks</title>
      <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Excel-vba-script-to-combine-diff-workbooks/m-p/161705#M1463</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Reeza,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the second and third workbook will have graphs.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Dec 2013 22:43:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Excel-vba-script-to-combine-diff-workbooks/m-p/161705#M1463</guid>
      <dc:creator>Eshan</dc:creator>
      <dc:date>2013-12-02T22:43:41Z</dc:date>
    </item>
  </channel>
</rss>

