...or even worse cycle through 7500. You could wind up getting shot down if you do that!
ALWAYS turn to standby before changing codes. You don't always need to communicate with an ATC unit when setting or changing a code, selecting 7000 (conspicuity) or 7004 if carrying out aerobatics are a couple of examples.
TheOddOne