on ‎2015 Dec 07 1:11 PM
Hi, experts!
I'm trying to activate "insert EPMMembersID in EPM formulas" function in advanced menu option by API (using VBA). Is anybody knows how it works?
and one more question:
i found "UseEPMMemberIDInEVFormulas" function, it looks like the following syntax:
Set api = Application.COMAddIns("FPMXLClient.Connect").Object
api.SetUserOption UseEPMMemberIDInEVFomulas, True
and it doesn't work.
maby in the User Guide was made misprint, anyway both variants ( UseEPMMemberIDInEVFomulas and EseEPMMemberIDInEVFormulas) don`t works.
What's wrong with this script?
Request clarification before answering.
Hi Ilya,
Please explain you requirements! What do you want to achieve in general??? Why do you need the mentioned functions?
Vadim
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
"i found "UseEPMMemberIDInEVFormulas" function," - incorrect, it's not a function it's a string parameter of the method SetUserOption.
The correct syntax is:
First in VBA project: Tools -> References: check FPMXLClient
Then:
Dim epm As New FPMXLClient.EPMAddInAutomation
Sub SetEPMMemberID()
epm.SetUserOption "UseEPMMemberIDInEVFomulas", True 'String!!!
End Sub
Vadim
Hi, Vadim!
Thank you for help. Now scipt seems work correctly.
The original purpose was to create column with property of members in column "B". For this purpose i created column with formula =EPMMbemberProperty(<connection>;B10;<property>) using EPMCopyRange. Where B10 is the member inthe row axis, wich looks like description only (without ID). In this case, some formulas shows #AmbiugousMemberDescription - ... (because some of descriptions are using few times). To fix it i'm using EPM\Tools\More\insert EPMMember in EPM formulas.I need to use this option after expand (refresh) report. Because if i'm taking EPMMemberID in =EPMMemberProperty(<connection>;EPMMbemberID(B10);<property>) using EPMCopyRange, the EPMCopyRange inserts formulas in each cells, however without EPMMemberID inserting works only if cell in column "B" is not empty.
Look in the help:
"16.4.3 Local Members - Examples"
Formula like:
=EPMMemberProperty(,EPMMbemberID(EPMDIM_CURRENT_MEMBER(DIMNAME)), "PROPERTY")
Where DIMNAME - dimension name in the row axis.
In the local member formula use English format independent of your Excel settings ("," - delimiter)!
Vadim
But Absolutely strange idea to mark this discussion as Assumed Answered! Assumed Answered - means that you didn't received a correct answer...
| User | Count |
|---|---|
| 17 | |
| 11 | |
| 9 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 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.