The Spireites will travel to Rochdale in the first round of the Emirates FA Cup.
Chesterfield qualified for the first round after beating Stockport County in a penalty shoot-out at the weekend.
The tie will take place on the weekend of Saturday, November 7.