Problem Note 31038: "Microsoft Visual Basic Run-time error '13': Type mismatch" after installing SASĀ® Financial Management 4.4 Hot Fix 1 or Hot Fix 2
When navigating a report in SAS Financial Management 4.4 with Hot Fix 1 or
Hot Fix 2 applied, you might encounter the error:
Microsoft Visual Basic Run-time error '13': Type mismatch
This will most likely happen when you open a form that is utilizing the SAS Financial Management API in a Visual Basic script.
To circumvent the problem, perform the following steps.
- Open the SAS Financial Management report in Microsoft Excel.
- On the Excel toolbar, select Tools ► Macro ► Visual Basic
Editor. A Microsoft Visual Basic window will appear.
- In the Microsoft Visual Basic toolbar, select Tools ►
References.
- In the list of available references, navigate to SASESExcelAddin and de-
select the reference.
- With the SASESExcelAddin still highlighted, select Browse.
- Navigate to:
<drive>\Program Files\SAS\SAS Financial Management\Add-in for Microsoft Excel
Note that the directory is "\SAS Financial Management\" not "\SASFinancialManagement\".
- Select SASESExcelAddin.tlb and select 'Open'.
- Verify that the SASESExcelAddin reference is selected in the Microsoft Visual Basic window.
- Select OK and then exit out of the Visual Basic Editor.
- Save your report by selecting SAS Solutions ► File ► Save
Template or SAS Solutions ► File ► Save Form Design from the Excel menu bar.
You should now be able to successfully work with the SAS Financial Management API in your report.
Update for Hot Fix 2
If Hot Fix 2 is applied to a system that already has Hot Fix 1 applied, this error will occur. It should not occur if Hot Fix 2 is applied to a base system.
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 | |
| 64-bit Enabled AIX | 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: | high |
| Date Modified: | 2010-06-23 15:37:09 |
| Date Created: | 2008-01-28 09:08:52 |