Quantcast
Channel: SCN : Discussion List - SAP Planning and Consolidation, version for the Microsoft platform
Viewing all articles
Browse latest Browse all 1545

Error using SetContectMember as a ComAddin Object

$
0
0

I want to hold the entity of the sheets with multiple workbooks.

Every workbook has his one entity

 

To do this I can use

 

    Dim ea As New EPMAddInAutomation

   

     ea.SetContextMember ea.GetActiveConnection(ActiveSheet), "Entity", Range("C5" )

 

AND THAT WORKS FINE BUT

 

To avoid errors when there are no references to FPMXLCLIENT - EPM I use always a COMADDIN object

 

That works normally fine excepts when I use it here:

  

               Dim eaEPMAutomation As Object

 

                     Set eaEPMAutomation = Application.COMAddIns("FPMXLClient.Connect").Object

 

                        eaEPMAutomation.SetContextMember eaEPMAutomation.GetActiveConnection(ActiveSheet), "Entity", Range("C5")

 

It gives error 438 I have no idea how to solve this. Object does not support this property or method. What can I use instead?


Viewing all articles
Browse latest Browse all 1545

Trending Articles



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