Table of Contents

VBR00457 — This key is already associated with an element of this collection

Severity: Error  ·  Family: VBR (runtime semantics)  ·  Source metadata: VBRuntimeErrorInfo

A key is already used by an element of the collection.

MS-VBA run-time error 457; the numeric portion of the code is the error's number. This code is raised by IStdCollectionClass, StdCollection.

How it is raised

Situation Example Resolution
A key is already used by an element of the collection. c.Add 1, "k" twice Use a distinct key.

See also


⏮️ VBR00455 Code resource lock error | ⏭️ VBR00458 Variable uses an Automation type not supported in Visual Basic


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