Hi,
I am trying to create a macro that reverts the worksheet to the initial navigation state (after the user has changed it).
According to the AO Manual this can be acheived by using the following code:
Dim lResult As Long
lResult= Application.Run("SAPExecuteCommand", "Refresh")
lResult= Application.Run("SAPExecuteCommand", "Restart")
As stated in the manual, I have also added the refresh command before the restart, as this seems to be needed.
This command should have the same result as deleting all crosstabs and re-inserting the data sources ->with their original navigation state.
It doesn't work! The crosstabs all stay the same, only data is refreshed (twice?). No error message.
I am using Analysis Excel Version 1.3 on top of sap netweaver BW.
What am I missing here?
Thanks,
Leo
PS: The result I want could also be acheived by these options (that have no VBA CODE equivalent - right?
A) UNDO all steps since opening the workbook
B) Closing the workbook without saving and reopening it.
Maybe somebody had a similar requirement and can help out?