VBA Logic Variable Errors

13 articles

Showing 1–12 of 13

Runtime Error 70: Permission denied (File access locks).

VBA raises Runtime Error 70: Permission denied when code attempts to write to, replace, rename, or…

September 8, 2026 5 min read

Runtime Error 53: File not found (Dir function failures).

VBA raises Runtime Error 53: File not found when a file-handling command—such as Kill, FileCopy, Name,…

September 7, 2026 3 min read

Runtime Error 7: Out of memory (Large array handling).

VBA raises Runtime Error 7: Out of memory when a macro demands more memory than the…

September 6, 2026 4 min read

Runtime Error 5: Invalid procedure call or argument.

VBA raises Runtime Error 5: Invalid procedure call or argument when a statement successfully invokes a…

September 5, 2026 3 min read

Runtime Error 28: Out of stack space (Recursive loops gone wrong).

Excel displays Runtime Error 28: Out of stack space when VBA exhausts its allotted call stack…

September 4, 2026 3 min read

Runtime Error 11: Division by zero in VBA calculations.

VBA halts execution with Runtime Error 11: Division by zero when a line of code attempts…

September 3, 2026 3 min read

Runtime Error 6: Overflow (Variable value exceeds the Integer limit—use Long).

VBA raises Runtime Error 6: Overflow when a calculation, assignment, or counter produces a number that…

September 2, 2026 4 min read

Runtime Error 438: Object doesn’t support this property or method (Typing errors).

VBA raises Runtime Error 438: Object doesn’t support this property or method when code calls a…

September 1, 2026 3 min read

Runtime Error 424: Object Required (Common in UserForm control references).

VBA raises Runtime Error 424: Object Required when code attempts to access a property, method, or…

August 31, 2026 3 min read

Runtime Error 13: Type Mismatch (Trying to perform math on a string variable).

VBA raises Runtime Error 13: Type Mismatch when an operation receives an argument whose data type…

August 30, 2026 4 min read

Runtime Error 9: Subscript out of range (Calling a Worksheet that doesn’t exist).

Excel VBA throws Runtime Error 9: Subscript out of range when your code attempts to access…

June 27, 2026 5 min read

Runtime Error 91: Object variable or With block variable not set (The Set keyword trap)

VBA generates Runtime Error 91: Object variable or With block variable not set when code attempts…

June 27, 2026 4 min read