Problem Note 40897: SASĀ® Financial Management Functions.xla does not load and CDA functions fail if process to invoke Excel is automated
If Microsoft Excel is invoked by an automated process, the <SAS Financial Management Functions.xla> file is not loaded and this causes SAS Financial Management CDA functions to fail. If you have added VBA code to your report/form, the VBA code will log on to the SAS Financial Management Add-in for Microsoft Excel and the functions will recalculate properly when the VBA code is executed interactively within Excel, but not if the Excel startup is automated.
There is a workaround to this. The following should be added to your VBA code if you wish to automate the Excel startup:
' Automated Excel does not install .xla
' files. This code finds and installs the
' SAS Financial Management Functions.xla
Dim CurrAddin As addin
For Each CurrAddin In Application.AddIns
If UCase(CurrAddin.Name) = UCase("SAS Financial Management Functions.xla") Then
If CurrAddin.Installed Then
CurrAddin.Installed = False
CurrAddin.Installed = True
Else
CurrAddin.Installed = True
End If
End If
windows("WorkbookWithMacro.xls").Activate
Operating System and Release Information
| SAS System | SAS Financial Management | Microsoft Windows 2000 Advanced Server | 4.4 | | 9.1 TS1M3 SP4 | |
| Microsoft Windows 2000 Datacenter Server | 4.4 | | 9.1 TS1M3 SP4 | |
| Microsoft Windows 2000 Server | 4.4 | | 9.1 TS1M3 SP4 | |
| Microsoft Windows 2000 Professional | 4.4 | | 9.1 TS1M3 SP4 | |
| Microsoft Windows Server 2003 Datacenter Edition | 4.4 | | 9.1 TS1M3 SP4 | |
| Microsoft Windows Server 2003 Enterprise Edition | 4.4 | | 9.1 TS1M3 SP4 | |
| Microsoft Windows Server 2003 Standard Edition | 4.4 | | 9.1 TS1M3 SP4 | |
| Microsoft Windows XP Professional | 4.4 | | 9.1 TS1M3 SP4 | |
| Windows Vista | 4.4 | | 9.1 TS1M3 SP4 | |
| 64-bit Enabled AIX | 4.4 | | 9.1 TS1M3 SP4 | |
| 64-bit Enabled Solaris | 4.4 | | 9.1 TS1M3 SP4 | |
*
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.
| Type: | Problem Note |
| Priority: | medium |
| Date Modified: | 2010-09-14 23:35:01 |
| Date Created: | 2010-09-14 23:17:12 |