on ‎2017 Dec 21 8:47 PM
Had a button in one of my EPM reports that used to refresh the EPM report, but it not longer works. Error is "Run-time error '9': Subscript out of range.
VBA is:
Sub REFRESH()
Dim api As Object
Set api = Application.COMAddIns("FPMXLClient.Connect").Object
api.RefreshActiveWorkBook
Application.Run "EPMExecuteAPI", "RefreshActiveWorkbook"
End Sub
Why would this no longer work?
Request clarification before answering.
Your issues are related to the migration to AO 2.4.
VBA code for AO is different then the code for standalone EPM.
Please read help:
Sample of VBA is here!
Dim cofCom As Object
Set cofCom = Application.COMAddIns("SapExcelAddIn").Object
Dim api As Object
Set api = cofCom.GetPlugin("com.sap.epm.FPMXLClient")
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Sub Example()
Dim cofCom As Object
Set cofCom = Application.COMAddIns("SapExcelAddIn").Object
Dim api As Object
Set api = cofCom.GetPlugin("com.sap.epm.FPMXLClient")
api.RefreshActiveSheet
End Sub
hi vadim kalinin please help me
my requirement is refresh the current sheet
but i am getting run time error 9 and script out of range in tool->reference which one i want to select thanks in advance
Strange code 🙂
Why:
api.RefreshActiveWorkBook
Application.Run "EPMExecuteAPI", "RefreshActiveWorkbook"
??
Please provide your EPM SP
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 15 | |
| 11 | |
| 10 | |
| 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.