<?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 run VBA macro through SAS in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/how-to-run-VBA-macro-through-SAS/m-p/430546#M106426</link>
    <description>Thank you,&lt;BR /&gt;&lt;BR /&gt;But I want only execute the VBA macro, no need to export any data to excel&lt;BR /&gt;file.&lt;BR /&gt;</description>
    <pubDate>Wed, 24 Jan 2018 17:08:35 GMT</pubDate>
    <dc:creator>ganeshsas764</dc:creator>
    <dc:date>2018-01-24T17:08:35Z</dc:date>
    <item>
      <title>how to run VBA macro through SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-run-VBA-macro-through-SAS/m-p/430539#M106421</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you please advise me how to run the VBA Macro through SAS 9.4,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; regards&amp;nbsp;&lt;/P&gt;&lt;P&gt;A Ganesh&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jan 2018 16:58:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-run-VBA-macro-through-SAS/m-p/430539#M106421</guid>
      <dc:creator>ganeshsas764</dc:creator>
      <dc:date>2018-01-24T16:58:09Z</dc:date>
    </item>
    <item>
      <title>Re: how to run VBA macro through SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-run-VBA-macro-through-SAS/m-p/430541#M106422</link>
      <description>&lt;P&gt;Check out the examples here&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://www.sascommunity.org/wiki/A_Poor/Rich_SAS_Users_Proc_Export" target="_blank"&gt;http://www.sascommunity.org/wiki/A_Poor/Rich_SAS_Users_Proc_Export&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jan 2018 17:00:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-run-VBA-macro-through-SAS/m-p/430541#M106422</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2018-01-24T17:00:27Z</dc:date>
    </item>
    <item>
      <title>Re: how to run VBA macro through SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-run-VBA-macro-through-SAS/m-p/430543#M106423</link>
      <description>&lt;P&gt;If&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/31304"&gt;@PeterClemmensen&lt;/a&gt;&amp;nbsp;is right, and you are looking to run VB script from SAS, you can run it by using:&lt;/P&gt;
&lt;PRE&gt;call system(yourVBscript.);&lt;/PRE&gt;
&lt;P&gt;The updated version of the paper that&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/31304"&gt;@PeterClemmensen&lt;/a&gt;&amp;nbsp;mentioned, which is a SAS macro that both creates and runs VB script, can be found at:&amp;nbsp;&lt;A href="http://www.sascommunity.org/wiki/Excelling_to_Another_Level_with_SAS" target="_blank"&gt;http://www.sascommunity.org/wiki/Excelling_to_Another_Level_with_SAS&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Art, CEO, AnalystFinder.com&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jan 2018 17:06:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-run-VBA-macro-through-SAS/m-p/430543#M106423</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2018-01-24T17:06:19Z</dc:date>
    </item>
    <item>
      <title>Re: how to run VBA macro through SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-run-VBA-macro-through-SAS/m-p/430546#M106426</link>
      <description>Thank you,&lt;BR /&gt;&lt;BR /&gt;But I want only execute the VBA macro, no need to export any data to excel&lt;BR /&gt;file.&lt;BR /&gt;</description>
      <pubDate>Wed, 24 Jan 2018 17:08:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-run-VBA-macro-through-SAS/m-p/430546#M106426</guid>
      <dc:creator>ganeshsas764</dc:creator>
      <dc:date>2018-01-24T17:08:35Z</dc:date>
    </item>
    <item>
      <title>Re: how to run VBA macro through SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-run-VBA-macro-through-SAS/m-p/430548#M106428</link>
      <description>&lt;P&gt;DDE. Use google to find examples.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jan 2018 17:15:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-run-VBA-macro-through-SAS/m-p/430548#M106428</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-01-24T17:15:46Z</dc:date>
    </item>
    <item>
      <title>Re: how to run VBA macro through SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-run-VBA-macro-through-SAS/m-p/430550#M106430</link>
      <description>&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried below-mentioned code but I am getting error,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;options noxwait noxsync;&lt;BR /&gt;x '"C:\Program Files\Microsoft Office\Office\excel.exe" ';&lt;BR /&gt;/* Sleep for 5 seconds to give Excel time to come up */&lt;BR /&gt;data _null_;&lt;BR /&gt;x=sleep(5);&lt;BR /&gt;run;&lt;BR /&gt;filename cmds dde 'excel|system';&lt;BR /&gt;data _null_;&lt;BR /&gt;file cmds;&lt;BR /&gt;/* Open the excel file test.xlsm which contains the VBA macro */&lt;BR /&gt;put '[open("c:\temp\test.xlsm")]';&lt;BR /&gt;/* Run myVBAmacro */&lt;BR /&gt;put '[run("test.xlsm!myVBAmacro")]';&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jan 2018 17:20:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-run-VBA-macro-through-SAS/m-p/430550#M106430</guid>
      <dc:creator>ganeshsas764</dc:creator>
      <dc:date>2018-01-24T17:20:14Z</dc:date>
    </item>
    <item>
      <title>Re: how to run VBA macro through SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-run-VBA-macro-through-SAS/m-p/430567#M106439</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/78522"&gt;@ganeshsas764&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Hi ,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I tried below-mentioned code but I am getting error,&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;When you get errors it really helps to share the actual error. Best is to copy the code submitted with the error and other messages from log and paste into a code box opened using the forum {I} icon. The code box will preserve formatting of error messages.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note that DDE may be interfered with by other programs that are running on your computer. I know that Cisco Jabber is one and that the process, not just&amp;nbsp; the application window, have to be killed before DDE will work on my computer.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jan 2018 18:18:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-run-VBA-macro-through-SAS/m-p/430567#M106439</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-01-24T18:18:19Z</dc:date>
    </item>
  </channel>
</rss>

