I have used treats but the best thing I found was to totally ignore this bad behavior and give the command sit. Only then does my pups get petted and attention. Now when someone walks in they all sit- very nice! We worked on sit command every chance we could til they understand what it means. Also walk ours til they and I am tired. I lost 40 pounds on weightwatchers along with walking :)