Cheshire-born singing star Gary Barlow is to take a guest role in Miranda Hart's TV sitcom - as the new man who sets her heart aflutter.
The Take That star, 41, has a one-off role in the series which returns next month.
X Factor judge Barlow has already filmed his scenes for the Bafta-winning show.
Barlow and Hart worked together in the summer when they were involved in the Queen's Diamond Jubilee celebrations at Buckingham Palace.
A BBC spokeswoman said: "Gary appears in one episode of the programme. They get friendly in an unexpected way."
The programme is unlikely to go up against Barlow's ITV1 talent contest as the episode is expected to be screened early in the new year.
Busy Barlow is about to embark on a solo tour this month, while The X Factor is still going on. And on Monday he is due to collect the Music Industry Trusts Award at a gala dinner.