excel vba disable events when sorting code example Example: excel vba disable mouse click ' Disables both keyboard and mouse Application.Interactive = False