I used the code below, but the rule 2 keeps having msgbox popping up in infinite loop. The bug shows in Application.Undo. Can someone please advise me how to fix this?