Refreshes objects in the report based on their name.
This allows you to refresh objects on demand. Objects could be Grids, Tables, Slicers, Small Multiples, or Treemaps.
This function is for use with the XL3Link function, which can be used to switch the refresh on.
Syntax
XL3RefreshObjectsNamed( [RunRefresh], [Name1],…, [Name29] )
Parameters
Parameter | Description |
RunRefresh | Should the refresh fire. This should be a reference to another cell that contains TRUE or FALSE. Once the refresh fires, that cell will be reset to FALSE. Use XL3Link to set the cell to true, causing a refresh. |
[Name1],…, [NameN] | Names of the objects to refresh. |
Example
This example assumes you are using cell $A$1 to hold the RunRefresh variable. Then, refresh the grid named "MyGrid".
First, create the XL3RefreshObjectsNamed, as follows:
=XL3RefreshObjectsNamed($A$1, "MyGrid")
Next set up the link to fire the refresh, as follows:
=XL3Link(XL3Address($A$1),"Refresh My Grid",,XL3Address($A$1),TRUE)
Selecting the link will refresh the grid specified.