Statement invalid outside Type block

   

The syntax for declaring variables outside a Type...End Type statement block is different from the syntax for declaring the elements of the user-defined type. This error has the following causes and solutions:

For additional information, select the item in question and press F1.