Determining the cause of bad behavior is always recommended; excessive barking is no exception.
Though barking may be an annoyance, remember that occasional barking—at appropriate times—is positive and healthy for your dog. When the barking becomes non-stop or excessive, it is important to gain control of the situation before it gets out of hand. Assess your dog’s situation and take the proper course of action from there.
Click here to read more: http://www.agway.com/know_how/pets/training_your_pet/how_to_stop_excessive_barking.html