0

Detecting the use of Autopilot at run-time?

Being able to enter report options with Database Lookup, using NL("Lookup",…) rather than directly onto a separate "Options" worksheet, makes our reports much easier to use.

However, when run unattended with Autopilot, such reports will wait indefinitely for user input that never arrives.

For many reports, I now have two versions, one for interactive use and another for use with Autopilot.

Is there a way to detect at run-time if the report is running under Autopilot? I then could use a formula like =IF(RunningUnderAutopilot(), "", "Option") in the first column of my "Options" sheet. This would enable me to use the same report both interactively and with Autopilot.

I could of course define a named cell "running_under_autopilot" and set this to some value with Autopilot, and this would work, but the resulting report would keep the value of "running_under_autopilot" and hence skip the options dialog when re-run interacively by an end user.

2 comments

Please sign in to leave a comment.