VBR00052 — Bad file name or number
Severity: Error · Family: VBR (runtime semantics) ·
Source metadata: VBRuntimeErrorInfo
A file number is not valid, or is not open.
MS-VBA run-time error 52; the numeric portion of the code is the error's number. This code is raised by FileStatementRuntimeSemantics, StdHidden, SessionFileChannels.
How it is raised
| Situation | Example | Resolution |
|---|---|---|
| A file number is not valid, or is not open. | Print #1, x before Open, Close #300 |
Use a number from FreeFile, and open it first. |
See also
ACCUEIL • HOME | ℹ️ BIENVENUE • WELCOME | 🧩 BÂTISSONS • BUILD | RD-VBAL | SDK | 🌐 rubberduckvba.ca