Ed Helms has lined up two movie roles before he shoots Season 9 of The Office. The actor has signed on for director David Wain's They Came Together, and for a cameo appearance in New Line's We're the Millers.

They Came Together centers on Joel (Paul Rudd), a corporate tycoon who threatens to tear down a small shop owned by Molly (Amy Poehler). While the two instantly start hating each other, they develop an awkward romance in the same vein of You've Got Mail. Ed Helms is playing Eggbert, Molly's love interest/accountant.

David Wain is directing from a script he co-wrote with Michael Showalter. Production is slated to begin next month.

We're the Millers stars Jason Sudeikis as a drug dealer, who hires a fake wife (Jennifer Aniston) and two kids to help him smuggle 1,000 pounds of mairjuana from Mexico to the U.S. Ed Helms will play Jason Sudeikis' shady boss, who hides a dark secret.

The actor returns to The Office on July 30, before leaving to shoot The Hangover Part II on September 16.