How I Met Your Mother: Season 7, Episode 24

The Magician's Code: Part 2 (14 May 2012)

TV Episode  |  TV-14  |   |  Comedy, Romance
Your rating:
    1 2 3 4 5 6 7 8 9 10 -/10 X  
Ratings: 8.8/10 from 1,857 users  
Reviews: 5 user | 2 critic

Ted makes a fateful phone call to his old girlfriend Victoria, Barney's magic trick gets him in trouble with airport security just as he's about to leave on a trip with Quinn, and Robin tries to take the perfect birth announcement photo.



(creator), (creator), 6 more credits »
0Check in

Watch Now

$0.00 with Prime Video

« Previous Episode | 160 of 208 Episodes | Next Episode »





Episode complete credited cast:
Loretta Stinson (voice)
Mrs. Matsen (as Renee Taylor)
Guard #1
Guard #2
Christopher Carroll ...


As Lily and Marshall become a threesome with the arrival into the world of Marvin Wait-For-It Eriksen, Ted, Robin and Barney review the status of their lives at this present time. Ted and Robin come to an understanding about their relationship. Robin believes that Ted has always chased after the wrong girl, with the exception of one, who she encourages Ted to go after. But Ted will have to make one further decision based on the status of that woman's own life at this time. And Barney is afraid that running away to Atlantic City has led to the end of his and Quinn's relationship. Their relationship is able to survive this incident, so much so that they decide to take their first vacation together to Hawaii. But they have some problems getting through airport security because of the magician's box Barney has in his carry-on, the secret to which he refuses to divulge except to a fellow magician. The secret of the magician's box will lead indirectly to Barney's life with who will become ... Written by Huggo

Plot Summary | Plot Synopsis


Comedy | Romance





Release Date:

14 May 2012 (USA)  »

Company Credits

Show detailed on  »

Technical Specs


Sound Mix:

Aspect Ratio:

16:9 HD
See  »

Did You Know?


Barney says he was taught magic by Mr. Flanagan of the Staten Island Mall Magic School, but previously he was taught magic by his father (his Uncle Jerry). See more »


Guard #1: [At the JFK passenger terminal, Barney and Quinn are asked about the luggage]
[sees box in bag]
Guard #1: What's that?
Quinn Garvey: Yeah, what is that?
Barney Stinson: It's a magic box. You see, I'm something of a magician.
Guard #1: Open the box, sir.
Barney Stinson: [laughs] I can't do that.
[K9 barks]
Guard #1: Sir, are there drugs in that box?
Barney Stinson: Oh no, he's probably barking because of the explosives.
See more »


References American Psycho (2000) See more »


Hey Beautiful
Written by The Solids
Performed by The Solids
See more »

Frequently Asked Questions

This FAQ is empty. Add the first question.

User Reviews

8 Or Higher
12 February 2015 | by (United Kingdom) – See all my reviews

Eight or higher is a rule Marshall and Lily impose on the gang. It is just as well the audience didn't impose that rule on the makers of "How I Met Your Mother" As this season has had more than a few "less than an 8" episodes

Plot In A Paragraph: Barney and Quinn struggle to get through airport security on their romantic getaway. Robin encourages Ted to call "The one that got away" Victoria whilst trying to get a family photo of Marshal Lily and Marvin Jr

Whilst the Barney storyline was a lot of fun, and I do like Becki Newton as Quinn, I feel all the work of making us like Quinn and root for her has been ruined by the revelation that he is getting married (As shown in the finale of season 6) to Robin. Its a massive step back for the show. Ted loves Robin, Robin loves Ted, they break up, Barney loves Robin, Robin loves Barney, they break up Robin loves Barney,nothing happens, Barney loves Robin, she rejects him. now BAM, back to that story!! Although I do like Robin and Barney better than Robin and Ted.

A massive plus is the return of Ashley Williams as Victoria, as she is my favourite of all Ted's women (Robin included) but we know she is not the mother as Ted said he met the mother at Barney's wedding. 'Trilogy Time' revealed Ted has a daughter in 3 years time, So going back to Victoria (as much as I like her) is another step backwards for the show.

3 of 4 people found this review helpful.  Was this review helpful to you?

Message Boards

Recent Posts
It's Been 18 months now arnitchetry10
Tiny things that bothered you? e-l-r-w
Robin's screaming Cherry23
This whole show is kind of irrelevant, he didn't meet the mother...... jamie125
Its Irrational to dislike the ending masewindu236
Mother wouldn't miss her daughters wedding scene codjohn
Discuss The Magician's Code: Part 2 (2012) on the IMDb message boards »

Contribute to This Page

Create a character page for: