Create: Interject Run On OpenEstimated reading time: 5 minutes
Some reports require default values, settings, or have summary pages that must be pulled before others in order for the report to function properly. Using the Run on Open Interject property will auto-run the first tab that appears. This can save time and helps streamline Interject processes.
We will walk through Run on Open using the Customer Aging Report.
If you are following the Training Labs, this report file can be found in the Report Library at Training Labs > Lab 6 Special Features > Lab 6.4 Interject Run On Open.
Setting up Run on Open via Diagnostics
The Diagnostics window provides an easy way to set up the run on open feature. It also provides many more ways to customize this feature. To setup the feature you need to input the correct code in the Input field and click Execute Selected Action.
RunOnOpen Input Syntax
|Designates an Excel Tab (followed by the name of a tab)
|Designates a report Formula (followed by a cell reference or a named range)
|Runs the designated report once and then turns off the setting
|Opens the Pull Data window upon file open
|Executes the code that follows in test mode and displays results
|The exclamation symbol negates or excludes an action
|The pipe symbol is used to connect two pieces of code (e.g. a tab and a cell)
|The comma is used to enter multiple codes
RunOnOpen Examples Codes
|Will run all report formulas in the sheet "Sheet1"
|Will run the report formula in cell A5 in Sheet "Sheet1"
|Will run all report formulas in the sheet "Sheet1" except for the formula in cell A5
|Will run the report formula in cell A5 in the active sheet
|Will run the report formula in the range name "CellName"
|Will run all report formulas in the sheet "Sheet1" and then turn off the setting
|Will run the report formula in cell A5 in the active sheet and then turn off the setting
|Will run the report formulas in "Sheet1" and then in "Sheet2" and then in the range name "CellName"
|Will open the Pull Data window when the file opens
|Displays information in Results as if RunOnOpen was actually executed
|Displays information in Results as if the formula in A5 was executed as RunOnOpen
Step 1: To begin, open the Customer Collections report in the Report Library.
Step 2: Click on the Advanced Menu if it is not already displayed.
Step 3: Click on Diagnostics.
Step 4: The RunOnOpen feature is located on the System Tools folder of the Diagnostics. Input F:C6 in the Input field and click Execute Selected Action.
Step 5: Save the file and reopen it to find the report automatically runs the report formula found in cell C6.