Catalysis of the transfer of a coenzyme A (CoA) group from one compound (donor) to another (acceptor).