Invalid in Immediate pane

Possible causes:

         Declarative statements such as Const, Declare, Deftype, Dim, Function, Global, Option Base, Option Explicit, Option Compare, ReDim, Static, Sub, and Type are not allowed in the Immediate pane.

         Multiline statements, such as a block IfH74D13, are not allowed in the Immediate pane.

         You tried to execute some code in the Immediate pane that invalidates the current state of your program and requires reinitializing the program.