When it means “anybody,” “anyone” is spelled as a single word: “anyone can enter the drawing.”

But when it means “any single one,” “any one” is spelled as two words: “any one of the tickets may win.”