Using the classical trajectory Monte Carlo method, we calculated the charge-transfer cross section for antiprotons colliding with Rydberg positronium, leading to antihydrogen formation. The results show a significant influence of an externally applied magnetic field which causes a reduction of the cross section.