Table of Contents

VBR00054 — Bad file mode

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

An operation is not valid for the mode a file was opened in.

MS-VBA run-time error 54; the numeric portion of the code is the error's number. This code is raised by FileStatementRuntimeSemantics, StdHidden.

How it is raised

Situation Example Resolution
An operation is not valid for the mode a file was opened in. Print #1, x on a file opened For Input Open the file for what you do with it.

See also


⏮️ VBR00053 File not found | ⏭️ VBR00055 File already open


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