North of CR 315, NY 240 runs north through a large residential section of Cheektowaga, passing houses on both sides of the road for six blocks, including a junction with CR 207 (William Street). Passing just east of the village of Sloan, NY 240 proceeds northward along Harlem Road over a railroad yard owned by CSX Transportation. After crossing over the yard, NY 240 enters an interchange with NY 130 (Broadway) via two ramps. After crossing over NY 130, NY 240 crosses over another railroad yard, passing several large industries near an intersection with Walden Avenue. NY 240 continues north through Cheektowaga, remaining a two-lane residential boulevard, passing east of Cheektowaga Town Park.