Since cats cannot speak English, yelling at them really doesn't make much of an impression aside from being a loud noise. Lady darko's method of squirting them with water is the best accepted way to stop a cat from doing things. You see, cats hate to be humiliated. And squirting them humiliates them. That they remember.