Can't execute immediate statements in design mode

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:

For additional information, place the cursor in the Immediate window and press F1.