With your excel spreadsheet opened simply navigate to the review tab in the ribbon. In the review tab there is an option spelling as shown in the image. Click insert module to insert a new code module.