29/08/2026
Workbook_Open() and Auto-Deleting file(s) in Excel VBA
Introduction This blog article shows you how to run VBA when the Workbook is open and it could be misused as a melware. Many Excel automation tasks need to run automatically when a workbook is opened. A common example is deleting a temporary file such as data.txt. However, developers often discover that Workbook_Open() does not execute as expected. This article explains the VBA code, how the Workbook_Open event works, and the most common reasons it fails....
Introduction This blog article shows you how to run VBA when the Workbook is open and it could be misused as a melware. Many Excel automation tasks need to run automatically when a workbook is open…