on 11-06-2014 5:07 PM
Hi Experts ,
I am trying to use macros to change the workbook connection to model via vba.
I need to use "setactiveconnection" but i don't know the arguments of this function.
Any idea of how to use it on BPC 10 NW?
Thank you in advance
Rosanna
Hi Rosanna,
First of all you need to "build" your connection link, for that update the values in bold.
_FPM_BPCNW10_[{your_server}:9014/sap/bpc/]_[{environment}]_[{model}]_[false]
Tip: To get the values you can use epm formulas and concatenate them:
A1 | Fixed | _FPM_BPCNW10_[ |
A2 | Formula | =EPMServer() |
A3 | Fixed | ]_[ |
A4 | Formula | =EPMEnvDatabaseID() |
A5 | Fixed | ]_[ |
A6 | Fixed | FINANCIALS |
A7 | Fixed | ]_[false] |
For the change connection basically use:
Sub test1()
Dim EPM As New FPMXLClient.EPMAddInAutomation
EPM.SetActiveConnection Sheet1, Range("A8").Value
End Sub
A8 is the cell with concatenated values.
Lucas
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.