VBR00481: Invalid picture
Severity: Error · Family: VBR (runtime semantics) ·
Source metadata: VBRuntimeErrorInfo
A picture is not valid.
MS-VBA run-time error 481; the numeric portion of the code is the error's number. LoadPicture raises it for a file that holds no picture it reads.
How it is raised
| Situation | Example | Resolution |
|---|---|---|
| The file is not a picture. | Set p = LoadPicture("notes.txt") |
Load a bitmap, GIF, JPEG, PNG, icon, cursor or metafile. |
| The file is empty. | Set p = LoadPicture("empty.bmp") |
Load a complete picture file. |
RD-VBA addition: a PNG loads as a bitmap (Type 1) and keeps its alpha channel. A Microsoft Forms control or form it is given to draws it
with that alpha, at the PNG's size. MS-VBA raises 481 for a PNG.
See also
ACCUEIL • HOME | ℹ️ BIENVENUE • WELCOME | 🧩 BÂTISSONS • BUILD | RD-VBAL | SDK | 🌐 rubberduckvba.ca