Neil Patrick Harris

Neil Patrick Harris, How I Met Your Mother's resident womanizer, has signed a deal to guest-star on Glee, TVGuide.com has confirmed.

Check out videos of Neil Patrick Harris

Hot off hosting last year's Emmys and Tonys, and with his third straight Emmy nomination and second straight Golden Globe nomination, Harris is making his way over to the Fox series that has won a Golden Globe and SAG award.

Neil Patrick Harris near deal to appear on Glee

Details of his role and when he'll appear have not been released, but his rep told TVGuide.com that he will be in only one episode.

In January, reports surfaced that Harris was in talks to appear in the May sweeps episode by Dr. Horrible director Joss Whedon, though that has not yet been confirmed.

The casting news was first reported by Watch with Kristin at E! Online.