Problem Note 54745: The SAS® Add-In for Microsoft Office might fail to execute a prompted stored process in Microsoft PowerPoint
The SAS Add-In for Microsoft Office might fail to execute a prompted stored process in Microsoft PowerPoint. This problem occurs if you use VBA to insert the stored process. Specifically, in release 5.1 and later, the prompt dialog box is not displayed and the stored process does not execute.
To correct this issue, apply the latest hot fix to the 6.1_M1 release of the SAS Add-In for Microsoft Office, and then add the following line to your VBA code:
Application.DisplayAlerts = ppAlertsAll
For sample VBA code, click the Full Code tab in this SAS note.
Operating System and Release Information
SAS System | SAS Add-in for Microsoft Office | Microsoft® Windows® for x64 | 5.1 | 7.11 | | 9.4 TS1M0 |
Microsoft Windows 8 Enterprise 32-bit | 5.1 | | | |
Microsoft Windows 8 Enterprise x64 | 5.1 | 7.11 | | 9.4 TS1M0 |
Microsoft Windows 8 Pro 32-bit | 5.1 | | | |
Microsoft Windows 8 Pro x64 | 5.1 | 7.11 | | 9.4 TS1M0 |
Microsoft Windows 8.1 Enterprise 32-bit | 5.1 | 7.11 | | 9.4 TS1M0 |
Microsoft Windows 8.1 Enterprise x64 | 5.1 | 7.11 | | 9.4 TS1M0 |
Microsoft Windows 8.1 Pro | 5.1 | 7.11 | | 9.4 TS1M0 |
Microsoft Windows 8.1 Pro 32-bit | 5.1 | 7.11 | | 9.4 TS1M0 |
Microsoft Windows 95/98 | 5.1 | | | |
Microsoft Windows 2000 Advanced Server | 5.1 | | | |
Microsoft Windows 2000 Datacenter Server | 5.1 | | | |
Microsoft Windows 2000 Server | 5.1 | | | |
Microsoft Windows 2000 Professional | 5.1 | | | |
Microsoft Windows NT Workstation | 5.1 | | | |
Microsoft Windows Server 2003 Datacenter Edition | 5.1 | | | |
Microsoft Windows Server 2003 Enterprise Edition | 5.1 | | | |
Microsoft Windows Server 2003 Standard Edition | 5.1 | | | |
Microsoft Windows Server 2003 for x64 | 5.1 | | | |
Microsoft Windows Server 2008 | 5.1 | | | |
Microsoft Windows Server 2008 R2 | 5.1 | 7.11 | | 9.4 TS1M0 |
Microsoft Windows Server 2008 for x64 | 5.1 | 7.11 | | 9.4 TS1M0 |
Microsoft Windows Server 2012 Datacenter | 5.1 | 7.11 | | 9.4 TS1M0 |
Microsoft Windows Server 2012 R2 Datacenter | 5.1 | 7.11 | | 9.4 TS1M0 |
Microsoft Windows Server 2012 R2 Std | 5.1 | 7.11 | | 9.4 TS1M0 |
Microsoft Windows Server 2012 Std | 5.1 | 7.11 | | 9.4 TS1M0 |
Microsoft Windows XP Professional | 5.1 | | | |
Windows 7 Enterprise 32 bit | 5.1 | | | |
Windows 7 Enterprise x64 | 5.1 | 7.11 | | 9.4 TS1M0 |
Windows 7 Home Premium 32 bit | 5.1 | | | |
Windows 7 Home Premium x64 | 5.1 | | | |
Windows 7 Professional 32 bit | 5.1 | | | |
Windows 7 Professional x64 | 5.1 | 7.11 | | 9.4 TS1M0 |
Windows 7 Ultimate 32 bit | 5.1 | | | |
Windows 7 Ultimate x64 | 5.1 | | | |
Windows Millennium Edition (Me) | 5.1 | | | |
Windows Vista | 5.1 | | | |
Windows Vista for x64 | 5.1 | | | |
*
For software releases that are not yet generally available, the Fixed
Release is the software release in which the problem is planned to be
fixed.
Here is some sample VBA code for executing a prompted stored process in Microsoft PowerPoint. The code can be used with SAS Add-In 6.1_M1 for Microsoft Office with the latest hot fix applied.
Sub stp()
Application.DisplayAlerts = ppAlertsAll
Dim sas As SASPowerPointAddIn
Set sas = Application.COMAddIns.Item("SAS.PowerPointAddIn").Object
Dim stp As SASStoredProcess
Set stp = sas.InsertStoredProcess("/Products/SAS Intelligence Platform/Samples/Sample: Shoe Sales by Region")
End Sub
Type: | Problem Note |
Priority: | high |
Date Modified: | 2014-12-05 13:53:29 |
Date Created: | 2014-12-01 17:59:54 |