whenever I had a rough inspection on a new house, the inspector always picked up on that stapling near a box. so I asked him what is the rule of thumb? he said between 6-8 inches is plenty, but not beyond - say 9 inches. that's too much! they make things that are nailed in the studs that make bundled wires easier to fasten within the 8 inches of the box. its a yoke made of plastic that holds wires running down a stud AND approx mid-stud. the book says to staple at the approx center of a stud. those nail on boxes can be removed with a small prybar between the box and the stud without destroying the box. its easier doing it in warm weather then the winter where everything becomes brittle.