VBA System Environment Conflicts
14 articles
Handling “ActiveX can’t create object” when using FileSystemObject.
The alert Runtime Error 429: ActiveX component can't create object appears when a VBA procedure attempts…
Fixing VBA errors caused by “OneDrive” autosave and temp file paths.
When a macro fails with Runtime Error 52: Bad file name or number, Runtime Error 76:…
Troubleshooting Mac vs. Windows VBA compatibility (ActiveX vs. AppleScript).
VBA code written on Windows often fails on macOS with runtime errors like Error 429: ActiveX…
Digital Signatures: Fixing “The VBA project is not digitally signed.”
The notification “The VBA project is not digitally signed” appears when Excel’s Trust Center is set…
Handling “ScreenUpdating” and “Calculation” mode freezes.
When Excel freezes with a frozen display or unresponsive grid after running a macro, the cause…
Fixing “Cannot run the macro… The macro may not be available in this workbook.”
The error alert “Cannot run the macro ‘WorkbookName.xlsm!MacroName’. The macro may not be available in this…
Excel Crashing on Close: How to properly clear Object variables from memory.
Excel crashing or hanging upon exit usually indicates that an orphaned process remains active in memory.…
Troubleshooting “Out of Resources” during massive VBA loops.
When Excel displays an “Out of Resources” or “Excel ran out of resources while attempting to…
“Project is Unviewable”: Solving errors when trying to open protected VBA projects.
The error “Project is Unviewable” (often appearing simply as a modal message stating “Project Locked: Project…
Fixing “Automation error: The object invoked has disconnected from its clients.”
The error “Automation error: The object invoked has disconnected from its clients” (runtime error code -2147417848…
“Macros have been disabled”: Troubleshooting the “Trusted Locations” security block.
The message “Macros have been disabled” appears when Excel blocks Visual Basic for Applications (VBA) code…
Using PtrSafe and LongPtr for Windows API declarations.
Declaring Windows API functions in Excel VBA allows you to access low-level operating system features, such…