Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9090

Re: Fill values into members of the EPM context pane

$
0
0

Hi Gerd,

 

Yes it is possible you can set context member using VBA.

 

You can use VBA for that use below code. just use  drop down cell reference instead of (A1)

 

Need Manual trigger

 

Dim epm As New FPMXLClient.EPMAddInAutomation

 

Sub change context()

 

Dim CONNE As String

CONNE = epm.GetActiveConnection(ActiveSheet)

 

'To set context

epm.SetContextMember CONNE, "CURRENCY", Range("A1")

 

'To refresh

epm.RefreshActiveWorkBook

 

End Sub





on context change


 

Dim epm As New FPMXLClient.EPMAddInAutomation

 

Function AFTER_CONTEXTCHANGE()

 

Dim CONNE As String

CONNE = epm.GetActiveConnection(ActiveSheet)

 

'To set context

epm.SetContextMember CONNE, "CURRENCY", Range("A1")

 

End Function



Regards,

sushant



Viewing all articles
Browse latest Browse all 9090

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>