ME not valid outside of class scope

You used the keyword Me outside of a procedure within a class. Use the keyword Me only inside procedures within a class. You use Me within the definition of a class when referring to members of that class.

Remove the keyword Me. If you are referring to a class member, use an object reference variable instead of Me.