Design time is any time that your code isn't being executed, or is suspended and waiting to be continued. This error has the following cause and solution:
Start your code running, and then suspend program execution. You can then execute code in the Immediate window.
For additional information, place the cursor in the Immediate window and press F1.