The way I see it is this, if the rogue has not used his Opportunity Attack before that enemy enters his square he can. Example time, Spoilered for size!
(Initiative E1, R, E2) Rogue uses Sneak Attack in normal attack, unable to use in Opportunity Attack later.
Enemy 1: Attacks Fighter
Rogue...