<?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 SAS ADD IN in Microsoft Integration with SAS</title>
    <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Re-EXCEL-VBA-SAS-ADD-IN/m-p/371189#M2066</link>
    <description>&lt;P&gt;Just add prompts, and make the creation of output dependent on those.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%macro do_output;
%if &amp;amp;prompt_for_output = yes %then %do;

/* insert your output/export code here */

%end;
%mend;
%do_output&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 28 Jun 2017 10:11:12 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2017-06-28T10:11:12Z</dc:date>
    <item>
      <title>Re: EXCEL VBA SAS ADD IN</title>
      <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Re-EXCEL-VBA-SAS-ADD-IN/m-p/371202#M2056</link>
      <description>&lt;P&gt;Okay so I guess there is no other way to get through this..??&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I will have to let excel import all the files..??l&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jun 2017 10:41:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Re-EXCEL-VBA-SAS-ADD-IN/m-p/371202#M2056</guid>
      <dc:creator>DipeshGupta</dc:creator>
      <dc:date>2017-06-28T10:41:47Z</dc:date>
    </item>
    <item>
      <title>EXCEL VBA SAS ADD IN</title>
      <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Re-EXCEL-VBA-SAS-ADD-IN/m-p/371165#M2058</link>
      <description>&lt;P&gt;I have a program where I have connected SAS through VBA using Excel Add-in and then I am running my SAS Stored Process from Excel-VBA but the problem is the Stored Process creates several outputs and I dont want to call those outputs in excel and just want to run the program.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am doing something like this.&lt;/P&gt;&lt;PRE&gt;sub sas()

Dim sas As SASExcelAddIn

Set sas = Application.COMAddIns.Item("Sas.ExcelAddIn").Object

Dim prompts As SASPrompts

Set prompts = New SASPrompts

Dim rng As Range

Set rng = Worksheets(1).Range("A1")

Dim cov As String

prompts.Add "STATS", cov


sas.InsertStoredProcess "/User Folders/klj/My Folder/Stored Process for Program 6", rng, prompts

end sub&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now I dont want the output of this program to be called in excel when this runs.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any idea how can I run the SAS Stored Process from Excel-VBA without calling any outputs in Excel.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jun 2017 08:00:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Re-EXCEL-VBA-SAS-ADD-IN/m-p/371165#M2058</guid>
      <dc:creator>DipeshGupta</dc:creator>
      <dc:date>2017-06-28T08:00:23Z</dc:date>
    </item>
    <item>
      <title>Re: EXCEL VBA SAS ADD IN</title>
      <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Re-EXCEL-VBA-SAS-ADD-IN/m-p/371170#M2059</link>
      <description>&lt;P&gt;If you don't want the outputs in Excel, why run it through Excel at all, thats just using it for the sake of using it?&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jun 2017 08:26:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Re-EXCEL-VBA-SAS-ADD-IN/m-p/371170#M2059</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2017-06-28T08:26:45Z</dc:date>
    </item>
    <item>
      <title>Re: EXCEL VBA SAS ADD IN</title>
      <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Re-EXCEL-VBA-SAS-ADD-IN/m-p/371175#M2060</link>
      <description>&lt;P&gt;If you just want to run a program without output, add a respective prompt to the stored process and use that to control if output is created or not.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jun 2017 08:43:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Re-EXCEL-VBA-SAS-ADD-IN/m-p/371175#M2060</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-06-28T08:43:35Z</dc:date>
    </item>
    <item>
      <title>Re: EXCEL VBA SAS ADD IN</title>
      <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Re-EXCEL-VBA-SAS-ADD-IN/m-p/371177#M2061</link>
      <description>&lt;P&gt;Sorry,&lt;BR /&gt;Maybe I haven't explained my problem properly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let me explain it properly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Its not like I dont want to create output sets because creating output datasets is necessary for my project otherwise the next program which depends on the output of the previous program will show error and hence output data sets will always be created in my SAS Stored Process program but I dont want to call the output sets in excel.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I even tried using Proc sql -&amp;gt; Drop Table (to drop unnecssary tables i.e. to drop 10 tables out of 15)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but whenever I use drop table in my program then it doesn't even call the 5 remaining tables and shows error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I just simple want to run SAS from excel addin and dont want the output sets to be displayed in excel&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jun 2017 08:52:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Re-EXCEL-VBA-SAS-ADD-IN/m-p/371177#M2061</guid>
      <dc:creator>DipeshGupta</dc:creator>
      <dc:date>2017-06-28T08:52:06Z</dc:date>
    </item>
    <item>
      <title>Re: EXCEL VBA SAS ADD IN</title>
      <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Re-EXCEL-VBA-SAS-ADD-IN/m-p/371179#M2062</link>
      <description>&lt;P&gt;If you don't need output in Excel, then what's the use in adding an additional level of complexity and instability when you just need to run a sequence of stored processes? You can do that quite easily from EG.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jun 2017 08:56:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Re-EXCEL-VBA-SAS-ADD-IN/m-p/371179#M2062</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-06-28T08:56:33Z</dc:date>
    </item>
    <item>
      <title>Re: EXCEL VBA SAS ADD IN</title>
      <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Re-EXCEL-VBA-SAS-ADD-IN/m-p/371180#M2063</link>
      <description>&lt;P&gt;I know that I can do that easily in EG but for my model to run I have to run it through excel.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Actually I have 8 Stored Process Programs in SAS EG and the first seven programs are used to create the 5 tables that are required in the end.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now for my purpose I want to run all the programs from excel but want to import output only from program 8 and not from other programs because importing the output dataset for all the programs takes a lot of time.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jun 2017 09:05:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Re-EXCEL-VBA-SAS-ADD-IN/m-p/371180#M2063</guid>
      <dc:creator>DipeshGupta</dc:creator>
      <dc:date>2017-06-28T09:05:32Z</dc:date>
    </item>
    <item>
      <title>Re: EXCEL VBA SAS ADD IN</title>
      <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Re-EXCEL-VBA-SAS-ADD-IN/m-p/371182#M2064</link>
      <description>&lt;P&gt;Then you should add options to the first 7 STPs that allow running them without creating output for Excel.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jun 2017 09:30:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Re-EXCEL-VBA-SAS-ADD-IN/m-p/371182#M2064</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-06-28T09:30:44Z</dc:date>
    </item>
    <item>
      <title>Re: EXCEL VBA SAS ADD IN</title>
      <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Re-EXCEL-VBA-SAS-ADD-IN/m-p/371183#M2065</link>
      <description>&lt;P&gt;okay, I didn't know there is such option in SAS Stored Process.&lt;/P&gt;&lt;P&gt;How can we do that..??&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jun 2017 09:33:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Re-EXCEL-VBA-SAS-ADD-IN/m-p/371183#M2065</guid>
      <dc:creator>DipeshGupta</dc:creator>
      <dc:date>2017-06-28T09:33:00Z</dc:date>
    </item>
    <item>
      <title>Re: EXCEL VBA SAS ADD IN</title>
      <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Re-EXCEL-VBA-SAS-ADD-IN/m-p/371189#M2066</link>
      <description>&lt;P&gt;Just add prompts, and make the creation of output dependent on those.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%macro do_output;
%if &amp;amp;prompt_for_output = yes %then %do;

/* insert your output/export code here */

%end;
%mend;
%do_output&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 28 Jun 2017 10:11:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Re-EXCEL-VBA-SAS-ADD-IN/m-p/371189#M2066</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-06-28T10:11:12Z</dc:date>
    </item>
    <item>
      <title>Re: EXCEL VBA SAS ADD IN</title>
      <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Re-EXCEL-VBA-SAS-ADD-IN/m-p/371199#M2067</link>
      <description>&lt;P&gt;Actually I am writing a code in Excel-VBA to run a sas program i.e.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;sub sas()

Dim sas As SASExcelAddIn

Set sas = Application.COMAddIns.Item("Sas.ExcelAddIn").Object

Dim prompts As SASPrompts

Set prompts = New SASPrompts

Dim rng As Range

Set rng = Worksheets(1).Range("A1")

Dim cov As String

prompts.Add "STATS", cov


sas.InsertStoredProcess "/User Folders/klj/My Folder/Stored Process for Program 6", rng, prompts

end sub&lt;/PRE&gt;&lt;P&gt;This code is wriiten in VBA and so I dont have any export code in SAS to impose if condition on it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This VBA code connects to SAS and runs the stored process for program 6. Everything is fine but it automatically imports all the created output data set so I wanted to know is there a condition which can be placed in Excel-VBA Add in to import data only when the user want else only run the program.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jun 2017 10:25:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Re-EXCEL-VBA-SAS-ADD-IN/m-p/371199#M2067</guid>
      <dc:creator>DipeshGupta</dc:creator>
      <dc:date>2017-06-28T10:25:46Z</dc:date>
    </item>
    <item>
      <title>Re: EXCEL VBA SAS ADD IN</title>
      <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Re-EXCEL-VBA-SAS-ADD-IN/m-p/371201#M2068</link>
      <description>&lt;P&gt;The specific purpose of the AddIn for MS Office is to catch all the output from SAS into the Office application. As long as the SAS side sends output, the AddIn will deal with it. Actually it has to, as the STP won't finish until it has delivered all its output.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jun 2017 10:39:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Re-EXCEL-VBA-SAS-ADD-IN/m-p/371201#M2068</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-06-28T10:39:28Z</dc:date>
    </item>
    <item>
      <title>Re: EXCEL VBA SAS ADD IN</title>
      <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Re-EXCEL-VBA-SAS-ADD-IN/m-p/371207#M2057</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/146316"&gt;@DipeshGupta&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Okay so I guess there is no other way to get through this..??&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I will have to let excel import all the files..??l&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Unless somebody else comes up with a good idea to do this on the AddIn side, I fear so.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jun 2017 10:53:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Re-EXCEL-VBA-SAS-ADD-IN/m-p/371207#M2057</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-06-28T10:53:41Z</dc:date>
    </item>
    <item>
      <title>Re: EXCEL VBA SAS ADD IN</title>
      <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Re-EXCEL-VBA-SAS-ADD-IN/m-p/371208#M2069</link>
      <description>&lt;P&gt;Okay but I can't wait till then &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am thinking of connecting Excel with command line and then connect the command line with SAS and I hope there is no such problem of importing SAS output dataset when through a command prompt.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jun 2017 11:00:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Re-EXCEL-VBA-SAS-ADD-IN/m-p/371208#M2069</guid>
      <dc:creator>DipeshGupta</dc:creator>
      <dc:date>2017-06-28T11:00:12Z</dc:date>
    </item>
    <item>
      <title>Re: EXCEL VBA SAS ADD IN</title>
      <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Re-EXCEL-VBA-SAS-ADD-IN/m-p/371508#M2070</link>
      <description>&lt;P&gt;Unchecking "Open output data automatically" (in SAS Add-in's-&amp;gt;Tools-&amp;gt;Options-&amp;gt;Data) should prevent any output data sets&amp;nbsp;created by your stored process (and any other stored processes,&amp;nbsp;programs, or tasks, since a global option)&amp;nbsp;from automatically being opened in Excel.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Jun 2017 01:58:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Re-EXCEL-VBA-SAS-ADD-IN/m-p/371508#M2070</guid>
      <dc:creator>CaseySmith</dc:creator>
      <dc:date>2017-06-29T01:58:17Z</dc:date>
    </item>
    <item>
      <title>Re: EXCEL VBA SAS ADD IN</title>
      <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Re-EXCEL-VBA-SAS-ADD-IN/m-p/371551#M2071</link>
      <description>&lt;P&gt;Thankyou Smith.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thats exactly what I was looking for.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks Kurt for always helping Me &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Just a normal advice&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is running SAS from command prompt and then running command prompt from Excel more efficient then running SAS directly from excel..??&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Efficiency in terms of speed and quality.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Jun 2017 07:07:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Re-EXCEL-VBA-SAS-ADD-IN/m-p/371551#M2071</guid>
      <dc:creator>DipeshGupta</dc:creator>
      <dc:date>2017-06-29T07:07:17Z</dc:date>
    </item>
    <item>
      <title>Re: EXCEL VBA SAS ADD IN</title>
      <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Re-EXCEL-VBA-SAS-ADD-IN/m-p/372914#M2082</link>
      <description>&lt;P&gt;ThankYou So Much. It did my Work and sorry for replying late &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jul 2017 05:21:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Re-EXCEL-VBA-SAS-ADD-IN/m-p/372914#M2082</guid>
      <dc:creator>DipeshGupta</dc:creator>
      <dc:date>2017-07-04T05:21:39Z</dc:date>
    </item>
  </channel>
</rss>

