OnRepeat Method Example
This example sets the repeat and undo procedures.
Application.OnRepeat "Repeat VB Procedure", _ "Book1.xls!My_Repeat_Sub" Application.OnUndo "Undo VB Procedure", _ "Book1.xls!My_Undo_Sub"