on ‎2016 Aug 01 4:31 PM
Hello,
I am looking to implement a macro that refreshes only select reports on a tab within BPC 10. Currently, I have set up a macro that can refresh all of them at once. In particular, I have 4 reports on 1 tab. I'd like to keep them all on that tab. However, I a macro that will refresh only Reports 000, 001, and 003 (not 002). I also want a macro that only refreshes report 002. Is refreshing multiple yet certain reports possible in macro's capabilities (working with VBA is new to me)?
Thanks,
EE
Request clarification before answering.
Hi Eric,
Refer to below link.....
Refreshing Reports - What's New - SAP Library
Or you can use EPMExceuteAPI function(RefreshActiveReport) too for refreshing the specific reports.
Hope this helps..
Regards,
JP
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Eric,
Apart from the solutions suggested already......one other solution would be to use "Freeze Data Refresh" option on report 002.
Active this option for Report 002 from the Edit report, so now you can use the normal Refresh button from the EPM tab which will refresh only report 000,001,003!
Create a macro button to refresh report 002 - Use the API "SetUserOptions" to deactivate the Freeze Data refresh....like"SetUserOptions(PauseRefresh,false) and then refresh the 002 report using the RefreshActive Report command or RefreshSelected report command in macro...
Sorry I dont have system right now to give you the detailed code...
Regards,
JP
I do not understand why do you need all this complex things...
You can get report cell with:
Dim rngCell as Range
Set rngCell = GetDataTopLeftCell(ThisWorkbook.Worksheets("SheetName"),"000")
rngCell.Select 'Data cell of report 000 will be selected.
api.RefreshActiveReport
...
same for other required reports...
Got it Vadim! Thanks for correcting me......I thought the Freeze Data Refresh option would be disabled from the User options since we cant modify any report options from macro!. so I suggested the Useroptions API. No system to test so....
RefreshSelected Report is an option in the Refresh itself to refresh a slected report only..by placing the cursor.
Regards,
JP
| User | Count |
|---|---|
| 34 | |
| 6 | |
| 4 | |
| 4 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.