If you want a macro to run every time the user enters anything or changes
anything on a particular spreadsheet, you can use the Change event of that
worksheet.
In VBA Editor, in projects, under your workbook, under Microsoft Excel
Objects, double-click that worksheet and enter the macro below.
Private Sub Worksheet_Change(ByVal Target As Excel.Range)
MsgBox "worksheet changed"
End Sub
If you want a macro to run every time the user enters anything or changes
anything on ANY worksheet, you can use the SheetChange event of the
workbook.
In VBA Editor, in projects, under your workbook, under Microsoft Excel
Objects, double-click "ThisWorkbook" and enter the macro below.
Private Sub Workbook_SheetChange(ByVal Sh As Object, _
ByVal Target As Excel.Range)
MsgBox "one of the worksheets changed"
End Sub
Regards,
Edwin Tam
(e-mail address removed)
http://www.vonixx.com