Ignore the dog while it is barking. When you yell at the dog while it is barking, it thinks you are barking with it, and it is also getting attention from you.
Get with friends, and get them to walk by and make noise outside--stand in front of your dog with treats, and give her treats when...