If you want to print the gridlines in Microsoft Excel 2013 or newer you must do the following steps:
- Go to File->Print
- Click the Page Setup link below the Print options.
- Click on the Sheet tab.
- Click on the Gridlines checkbox in the Print options.
Now when you print your Excel sheet it will also print the gridlines around the text. (Note: This will not print the empty cels).