Table of Contents

VBC09318 — With expression outside With block

Severity: Error  ·  Family: VBC (static semantics / abstract syntax tree)  ·  Source metadata: VBCompileErrorInfo

A member is written with a leading dot (.Member or !Member) where no enclosing With block supplies the object.

MS-VBAL §5.6.15 With Expressions.

This code is raised by ExpressionStaticSemanticsEvaluator.

How it is raised

Situation Example Resolution
The leading dot has no With around it. .Name = "x" outside any With Write the object before the dot, or enclose the statement in a With.

See also


⏮️ VBC09317 Invalid use of Me | ⏭️ VBC09319 Duplicate label definition


ACCUEIL • HOME | ℹ️ BIENVENUE • WELCOME | 🧩 BÂTISSONS • BUILD | RD-VBAL | SDK | 🌐 rubberduckvba.ca