S07E24How I Met Your Mother · Season 7
How I Met Your Mother season 7 episode 24: The Magician's Code (2)
Aired 14 May 201223 minRated TV-14
Where to watch How I Met Your Mother Season 7 in Australia
How I Met Your Mother season 7 is streaming in Australia on Disney+ (subscription, listed for the whole show). You can also buy it on Apple TV from $24.99 and Prime Video Store from $24.99.
We may earn a commission when you sign up through our links. How we make money.
Stream (subscription)
Stream Now on Disney+Disney+
Subscription · Listed for the whole show
From $9.99/mth
Buy or rent
Stream now on Apple TVApple TV
Buy
Buy from $24.99 a season
Rent or buy on Prime Video StorePrime Video Store
Buy
Buy from $24.99 a season
Availability checked 16 November 2026.
What happens in “The Magician's Code (2)”
Ted is conflicted when Victoria approaches him on her wedding day and asks him to elope. Meanwhile, Barney and Quinn are arrested by airport security while on the way to Hawaii when Barney refuses to open a box they are travelling with.
Episode summary: TMDB.
Before you watch
- It is the season finale of season 7, so watch episodes 1 to 23 first.
- It runs about 23 minutes.
- Directed by Pamela Fryman, written by Craig Thomas and Carter Bays.
- TMDB users rate it 7.6 out of 10 (36 votes).
How I Met Your Mother trailer
The official trailer for the series (no preview of this episode has been published).
Play video: How I Met Your Mother trailer
Cast and crew of this episode
- Director
- Pamela Fryman
- Writers
- Craig ThomasCarter Bays
- Guest stars
- Becki Newton as Quinn GarveyFrances Conroy as Loretta StinsonLance Barber as Guard #1Ashley Williams as VictoriaRenée Taylor as Mrs. MatsenRob Huebel as Mr. FlanaganChristopher Carroll as Mr. DruryKelly Connolly as Zelda
Credits: TMDB.
More from How I Met Your Mother Season 7
Every episode of Season 7How I Met Your Mother episode guide
Episode names, air dates, runtimes, stills and ratings: TMDB. Air dates are the first broadcast anywhere; where it streams is our daily Australian check.

