Troubleshooting
Problem
When using some Microsoft Windows locales, the automation function CognosOfficeAutomationObject() does not identify the Microsoft Excel version. This can cause VBA processes to stop.
Symptom
When you run a VBA process in Cognos Analysis for Microsoft Excel, the process steps out at the following line in the CognosOfficeAutomationObject() function:
If CDbl(Application.Version) < 12 Then
The problem occurs only for some Windows locales. Your Windows locale is set in Control Panel->Region and Language.
Cause
CDbl(Application.Version) is invalid in some locales. This is a Microsoft issue.
Environment
Microsoft Excel 2013 64-bit and 32-bit
Microsoft Excel 2010 64-bit and 32-bit
Microsoft Excel 2007
Resolving The Problem
Change CDbl(Application.Version) to Val(Application.Version)
Was this topic helpful?
Document Information
Modified date:
15 June 2018
UID
swg21964220