Has a switch hitter ever switched sides during the same at bat in a game?

Yes, usually this is done when a new pitcher comes in during the same at-bat and throws with the opposite arm.