<?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: SAS VBA Office Analytics in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-VBA-Office-Analytics/m-p/369420#M24155</link>
    <description>&lt;P&gt;Why are you trying VBA when the SAS Add-in to MS Office is so much easier?&lt;/P&gt;</description>
    <pubDate>Thu, 22 Jun 2017 10:00:52 GMT</pubDate>
    <dc:creator>SASKiwi</dc:creator>
    <dc:date>2017-06-22T10:00:52Z</dc:date>
    <item>
      <title>SAS VBA Office Analytics</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-VBA-Office-Analytics/m-p/369391#M24153</link>
      <description>&lt;P&gt;I am trying to connect SAS to Excel through VBA and I found out that one way of doing this is through Excel Add in but i encountered several problems in this method and I can't figure out the solution.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My VBA code looks like this &amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Sub testconnectiontosas()

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 z As String

z = InputBox("GIVE THE DATA TABLE NAME SAVED IN ACTSHARE LIBRARY")

prompts.Add "BASELEVEL1", z




sas.InsertStoredProcess "/User Folders/SAS Guest/My Folder/Stored Process for Program 3", rng, prompts&lt;/PRE&gt;&lt;P&gt;Problem 1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It is not calling the prompt dialog box as the addin does when I run a SAS program through Excel Addin directly without using VBA&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Problem 2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It allows me to assign value to only&amp;nbsp;one prompt but what if My program has more than one prompt like 2,3,4... prompts&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would be very glad if someone can help me with this problem.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Jun 2017 05:28:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-VBA-Office-Analytics/m-p/369391#M24153</guid>
      <dc:creator>DipeshGupta</dc:creator>
      <dc:date>2017-06-22T05:28:22Z</dc:date>
    </item>
    <item>
      <title>Re: SAS VBA Office Analytics</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-VBA-Office-Analytics/m-p/369405#M24154</link>
      <description>&lt;P&gt;Seems a bit overcomplicated. &amp;nbsp;You can generate Excel files from SAS. &amp;nbsp;Then post them to a secure portal for people to look at. &amp;nbsp;Doing it this way you need to maintain 3 separate apps, the VBA code, which of course would involve QC, validating entriy and such like. &amp;nbsp;Plus you would also need some sort of security model so not everyone who has that file can access your data. &amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you really need something like this there is software out there already, SAS has web reporting and such like, plus there are others.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Jun 2017 08:03:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-VBA-Office-Analytics/m-p/369405#M24154</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2017-06-22T08:03:02Z</dc:date>
    </item>
    <item>
      <title>Re: SAS VBA Office Analytics</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-VBA-Office-Analytics/m-p/369420#M24155</link>
      <description>&lt;P&gt;Why are you trying VBA when the SAS Add-in to MS Office is so much easier?&lt;/P&gt;</description>
      <pubDate>Thu, 22 Jun 2017 10:00:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-VBA-Office-Analytics/m-p/369420#M24155</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2017-06-22T10:00:52Z</dc:date>
    </item>
    <item>
      <title>Re: SAS VBA Office Analytics</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-VBA-Office-Analytics/m-p/369773#M24169</link>
      <description>&lt;P&gt;Actually I ab building a model in Excel where I want SAS to perform its function in the backend. So the process will be fully automatic, running through VBA macros and the user doesn't have to click SAS add - in.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But the only problem lies there is I have prompt of multiple values and I am not able to figure out how can I pass multiple values to SAS prompts.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using this code&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Dim sas As SASExcelAddIn

Set sas = Application.COMAddIns.Item("Sas.ExcelAddIn").Object

Dim prompts As SASPrompts

Set prompts = New SASPrompts

prompts.Add "RF_SEL1", Range("H2:H5").Value


Dim rng As Range

Set rng = Worksheets(1).Range("A1")

sas.InsertStoredProcess "/User Folders/SAS Guest/My Folder/Stored Process for Program 2", rng, prompts&lt;/PRE&gt;&lt;P&gt;But this code is not woring with the RANGE("H2:H5").&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I provide it with the range of values.&lt;/P&gt;</description>
      <pubDate>Fri, 23 Jun 2017 04:13:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-VBA-Office-Analytics/m-p/369773#M24169</guid>
      <dc:creator>DipeshGupta</dc:creator>
      <dc:date>2017-06-23T04:13:33Z</dc:date>
    </item>
  </channel>
</rss>

