on 10-21-2015 2:49 PM
Is there a way to collect the current sp or addin version from excel using VBA? I see FPMXLClient.CheckVersion, but that doesn't have any methods to actually provide a version.
Thanks!
To my mind - no way... at least in the current EPM version!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
An update - Since the Addin doesn't support the ability directly I wrote something that provides the data leveraging MDSN supported libraries/objects:
VB Functions*********************************************************************************
Const HKEY_LOCAL_MACHINE = &H80000002
Function EPMVersion() As String
'https://msdn.microsoft.com/en-us/library/aa394600(VS.85).aspx
strComputer = "."
Set oReg = GetObject("winmgmts:{impersonationLevel=impersonate}!\\" & strComputer & "\root\default:StdRegProv")
strKeyPath = "SOFTWARE\Wow6432Node\Microsoft\Active Setup\Installed Components\{51B053BE-48DD-41F9-A9B1-1C2C02C8F676}"
strValueName = "Version"
oReg.GetStringValue HKEY_LOCAL_MACHINE, strKeyPath, strValueName, EPMVersion
'MsgBox "Version:" & EPMVersion
End Function
*************************************************************************************************
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ryan
Just an FYI: (Not directly linked to your query)
With BO Advanced Analysis Office 2.1, now the EPM and Analysis for Office are delivered as one product and your approach might not help right away. If you are going to have a mix of different add-ins, you need to adjust your code accordingly as even directories will be different too.
User | Count |
---|---|
11 | |
3 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.