VBA Automation for Excel 2019 Cookbook
Solutions to automate tasks and increase productivity with Excel and other MS Office applications
By Mike Van Niekerk
The code bundle for the book is also hosted on GitHub at https://github.com/PacktPublishing/VBA-Automation-for-Excel-2019-Cookbook. In case there’s an update to the code, it will be updated on the existing GitHub repository.
https://static.packt-cdn.com/downloads/9781789610031_ColorImages.pdf
The first thing to remember about events is that the code is not stored in a module object, but in the workbook object. Place the code anywhere else and it will simply not work.
A