
You can customize your Visual Basic for Applications (VBA) code by associating the events listed below.
Use this function to execute a custom operation before changing the context.
Use this function to execute a custom operation after changing the context.
Use this function to execute a custom operation before the system refreshes the data.
After each refresh action, a dialog box will appear and display the text "Refresh successful".
Enter the following lines in a module:
Option Explicit Function AFTER_REFRESH() MsgBox "Refresh successful" AFTER_REFRESH = True End Function
Use this function to execute a custom operation before the system saves data into the database.
Use this function to execute a custom operation after the system saves data into the database.
Applies to: Planning and Consolidation connections.
Use this function to execute a custom operation before the system expands the EVDRE reports.
Applies to: Planning and Consolidation connections.
Use this function to execute a custom operation after the system expands the EVDRE reports.
Use this function to execute a custom operation after opening an Excel workbook.
The return values to use for all the above events are: true or false.
For performance reasons, you might want to change the number of tuples during a session for a specific workbook, for example, if your workbook contains a lot of EPM functions such as EPMRetrieveData, EPMSaveData and EPMSaveComment. To change the number of tuples, use the GetMaxTupleByCellRequest event. The number entered will override the SmartQueryEngineMaxTupleByCellRequest number.
Before each refresh action, the number entered will be automatically taken into account instea of the default value in the FPMXLClient.dll.config.
Enter the following lines in a module:
Option Explicit Function GetMaxTupleByCellRequest() GetMaxTupleByCellRequest = 50 End Function
In this example, if 200 tuples (member combinations) are retrieved, 4 queries of 50 tuples will happen on a refresh.