Skip to content
REFERENCE

U.DO

Summary

Evaluates any method when a specified trigger parameter recalculates

Syntax

=U.DO(expression, trigger, [keep_nulls], [freeze_seconds])

Parameters

Parameter Required Description
expression Yes The expression to be evaluated. The result of this parameter is returned.
trigger Yes A reference to another cell that, when recalculated, will cause U.DO to recalculate and therefore cause the specified expression to be re-evaluated.
[keep_nulls] No If set to TRUE then any empty values returned by expression will be returned as empty values, which Excel renders as a zero. By default empty values are replaced with blank strings
[freeze_seconds] No If set to a number greater than zero and less than or equal to 600, the method will freeze for that many seconds before returning. This can be used to simulate slow calcs when testing a sheet.

Behavior

The documented public interface is supported by the current U Add-in source signature and the maintained Usage Examples workbook. Optional parameters are shown in square brackets in the syntax above; omit the brackets when entering a formula.

Return Value

Returns the function result or action status described by the formula and parameters above. The maintained sources do not define a narrower, stable return contract for this function.

Examples

=U.DO(U.PUBLISH(C137,C138,G139:H146,U.PUB_AND_PASTE()))
=U.DO(U.REFRESH(C54,C55), U.NOW(60))
=U.DO(U.VAPPEND(C185,B121:C123,U.REPLACE(B134:D136,$B$145:$C$146)),U.NOW())

Notes

  • Formula examples are preserved from maintained workbook usage and normalized to the current U. prefix.
  • Complete formulas demonstrate working patterns; they do not imply that undocumented option values are supported.
  • Where maintained sources do not specify every accepted value, default, or error message, this page does not infer one.
  • For functions that perform actions, use a visible trigger or supported block/throttle parameter to avoid unintended repetition during recalculation.