Excel 2010 Code Example: Running VBA Code When Events Occur
You can create VBA code that runs when something happens in a workbook, such as opening the workbook, making or changing the selection on a worksheet, right-clicking, or switching worksheets. The VBA example in this download accompanies the technical article "Running VBA Code Whe