We combine the galaxy formation model galform with the photon-dominated region code ucl-pdr to study the emission from the rotational transitions of 12CO (CO) in galaxies from z = 0 to z = 6 in the ?cold dark matter framework