Car surges when a/c is on

Check the cycling switch. It is located on the passenger side firewall. It's a black cylinder lookin' thing. Short the switch by connecting both prongs inside the switch with a paper clip. Turn on the AC for a few seconds, and see if the idle stops jumping. DO NOT run the AC longer than a minute like this, or you can screw it all up. If the idle levels out, you need to replace the AC cycling switch.
 
I have a 2000 gt that does the same thing. The A/C is charged and it only does it in gear. The A/C does not cycle on/off only the engine surging, I think the A/C is putting a load on the engine and pulling the idle low enough for the computer to think it is going to stall and it pushes it back up. I havent figured out how yet.
 
Check the cycling switch. It is located on the passenger side firewall. It's a black cylinder lookin' thing. Short the switch by connecting both prongs inside the switch with a paper clip. Turn on the AC for a few seconds, and see if the idle stops jumping. DO NOT run the AC longer than a minute like this, or you can screw it all up. If the idle levels out, you need to replace the AC cycling switch.

+1
Or the freon could be low.
That switch senses low pressure and will cutoff the A/C when the pressure goes low either normally, so the compressor doesn't frost up, or abnormally if the freon level is low.