A variable has to be created before it can be displayed in the Watch window or the Immediate window, and before it can have values assigned to it in the Immediate window. This error has the following causes and solutions:
Step into the code to force compilation of the new statement.
You have to actually return to the procedure before you can display the variable in its context.
For additional information, select the item in question and press F1 (in Windows) or HELP (on the Macintosh).