Planning and Consolidation provides several custom functions that allow you to automate some of the tasks required for your business processes. You can use these custom functions when you build Visual Basic for Applications (VBA) macros in Planning and Consolidation.
You know how to build VBA macros.
Interface for Excel provides the following custom VBA functions:
BEFORE_CHANGECVW
You use this function to execute a custom operation before changing the current view.
Syntax
1. Option Explicit 2. BEFORE_CHANGECVW(Argument As String) 3. Process content 4. MsgBox Argument 5. BEFORE_CHANGECVW = True 6. End Function
AFTER_CHANGECVW
You use this function to execute a custom operation after changing the current view.
Syntax
1. Function AFTER_CHANGECVW(Argument As String) 2. MsgBox Argument 3. AFTER_CHANGECVW = True 4. End Function
BEFORE_REFRESH
You use this function to execute a custom operation before the system refreshes the data.
Syntax
1. BEFORE_REFRESH(Argument As String) 2. MsgBox Argument 3. BEFORE_REFRESH = True 4. End Function
AFTER_REFRESH
You use this function to execute a custom operation after the system refreshes the data.
Syntax
1. AFTER_REFRESH(Argument As String) 2. MsgBox Argument 3. AFTER_REFRESH = True 4. End Function
BEFORE_SEND
You use this function to execute a custom operation before the system sends data.
Syntax
1. BEFORE_SEND(Argument As String) 2. MsgBox Argument 3. BEFORE_SEND = True 4. End Function
AFTER_SEND
You use this function to execute a custom operation after the system sends data.
Syntax
1. AFTER_SEND(Argument As String) 2. MsgBox Argument 3. AFTER_SEND = True 4. End Function
BEFORE_EXPAND
In addition to using this function in online reporting, you can use it to execute custom code at the beginning of a batch process, such as offline distribution.
Syntax
1. BEFORE_EXPAND(Argument As String) 2. MsgBox Argument 3. BEFORE_EXPAND = True 4. End Function
AFTER_EXPAND
In addition to using this function in online reporting, you can use it to execute custom code at the end of a batch process, such as offline distribution.
Syntax
1. AFTER_EXPAND(Argument As String) 2. MsgBox Argument 3. AFTER_EXPAND = True 4. End Function