VBC09317 — Invalid use of Me
Severity: Error · Family: VBC (static semantics / abstract syntax tree) ·
Source metadata: VBCompileErrorInfo
Me is written where there is no object it could be.
Me is the object whose code is running, and a standard module has none (MS-VBAL §5.6.11 Instance Expressions).
This code is raised by InstanceExpressionStaticSemantics.
How it is raised
| Situation | Example | Resolution |
|---|---|---|
Me is written in a standard module. |
Debug.Print Me.Name in Module1 |
Move the code to a class module, or name an object. |
See also
⏮️ VBC09316 Method or data member not found | ⏭️ VBC09318 With expression outside With block
ACCUEIL • HOME | ℹ️ BIENVENUE • WELCOME | 🧩 BÂTISSONS • BUILD | RD-VBAL | SDK | 🌐 rubberduckvba.ca