Whenever you have a guest over and your dogs are barking, tell your guests to ignore the dogs and do not give them any attention for ten minutes after they arrive. Do not pet, do not shoo them away, just completely ignore them. Then, once the dogs have settled down, allow them to be petted and get attention. This teaches them that only once they calm down are they greeted by the newcomer.

Same goes for you, too.