<?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: passing prompt values to stored process from SAS Excel ADD-in VBA in Developers</title>
    <link>https://communities.sas.com/t5/Developers/passing-prompt-values-to-stored-process-from-SAS-Excel-ADD-in/m-p/739491#M5344</link>
    <description>&lt;P&gt;&amp;nbsp;Please have a look at this&lt;BR /&gt;&lt;A href="https://support.microsoft.com/en-us/topic/you-receive-run-time-error-429-when-you-automate-office-applications-b6070e15-ea78-4349-2751-72bdb5f186f7" target="_blank"&gt;https://support.microsoft.com/en-us/topic/you-receive-run-time-error-429-when-you-automate-office-applications-b6070e15-ea78-4349-2751-72bdb5f186f7&lt;/A&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 06 May 2021 14:05:16 GMT</pubDate>
    <dc:creator>Sajid01</dc:creator>
    <dc:date>2021-05-06T14:05:16Z</dc:date>
    <item>
      <title>passing prompt values to stored process from SAS Excel ADD-in VBA</title>
      <link>https://communities.sas.com/t5/Developers/passing-prompt-values-to-stored-process-from-SAS-Excel-ADD-in/m-p/352590#M5343</link>
      <description>&lt;P&gt;Hi.&lt;/P&gt;&lt;P&gt;I am trying to trigger (run) a SAS stored process from Excel using SAS Excel ADDIn using VBA code. I am able to trigger Stored Process and get output in Excel. But when I am passing prompt values via VBA it is giving a "Run-time Error 429" as mentioned in the attached file. Please find my code below -&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sub InsertStoredProcesswithInputStream()&lt;/P&gt;&lt;P&gt;Application.DisplayStatusBar = True&lt;BR /&gt;Application.StatusBar = "Please Wait. Connecting SAS EG..."&lt;BR /&gt;&lt;BR /&gt;Dim sas As SASExcelAddIn&lt;BR /&gt;Set sas = Application.COMAddIns.Item("SAS.ExcelAddIn").Object&lt;BR /&gt;&lt;BR /&gt;Dim rngRange As Range&lt;BR /&gt;Set rngRange = Range(Cells(5, 1), Cells(Rows.Count, 1)).EntireRow&lt;BR /&gt;rngRange.ClearContents&lt;BR /&gt;&lt;BR /&gt;Dim a1 As Range&lt;BR /&gt;Set a1 = Sheet1.Range("A5")&lt;BR /&gt;&lt;BR /&gt;Dim prompts As SASPrompts&lt;BR /&gt;Set prompts = New SASPrompts&lt;BR /&gt;prompts.Add "dpt_nm", "Living"&lt;BR /&gt;&lt;BR /&gt;sas.InsertStoredProcess "/Shared Data/ACoE_Stored_Processes_Test/reorder_sheet_test2", a1, prompts&lt;BR /&gt;&lt;BR /&gt;End Sub&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;without this -&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Dim prompts As SASPrompts&lt;BR /&gt;Set prompts = New SASPrompts&lt;BR /&gt;prompts.Add "dpt_nm", "Living"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Code runs fine and gives desired output.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, when I opened VBA I couldn't find SAS ADD-in 7.1 for Microsoft Office under tools-&amp;gt;references&lt;/P&gt;&lt;P&gt;So, I browsed and selected "SAS.OfficeAddin.tlb" from sas installation folder from program files. after that I got SAS ADD-in 7.1 in the tools-&amp;gt;references&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please help me resolve this issue&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/13740iA0DE06F156EADF88/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="SAS Excel ADDin Run-time error.jpg" title="SAS Excel ADDin Run-time error.jpg" /&gt;</description>
      <pubDate>Sun, 23 Apr 2017 12:16:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/passing-prompt-values-to-stored-process-from-SAS-Excel-ADD-in/m-p/352590#M5343</guid>
      <dc:creator>VinitXen</dc:creator>
      <dc:date>2017-04-23T12:16:25Z</dc:date>
    </item>
    <item>
      <title>Re: passing prompt values to stored process from SAS Excel ADD-in VBA</title>
      <link>https://communities.sas.com/t5/Developers/passing-prompt-values-to-stored-process-from-SAS-Excel-ADD-in/m-p/739491#M5344</link>
      <description>&lt;P&gt;&amp;nbsp;Please have a look at this&lt;BR /&gt;&lt;A href="https://support.microsoft.com/en-us/topic/you-receive-run-time-error-429-when-you-automate-office-applications-b6070e15-ea78-4349-2751-72bdb5f186f7" target="_blank"&gt;https://support.microsoft.com/en-us/topic/you-receive-run-time-error-429-when-you-automate-office-applications-b6070e15-ea78-4349-2751-72bdb5f186f7&lt;/A&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 06 May 2021 14:05:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/passing-prompt-values-to-stored-process-from-SAS-Excel-ADD-in/m-p/739491#M5344</guid>
      <dc:creator>Sajid01</dc:creator>
      <dc:date>2021-05-06T14:05:16Z</dc:date>
    </item>
  </channel>
</rss>

