A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
I bet you have some kind of data in the very last row(s) of the worksheet.
To remove theese data follow the steps below;
Select the full row under your data, ie row 40 then
CTRL+SHIFT and tap End to select all rows below
Right click any selected row and click Delete > Entire Row
You can hide row/column headings:
Click the office button > Excel settings > Advanced > In Display options for this worksheet, uncheck 'Show row and columnheadings'.
To print a part of the worksheet, select the range to print, goto Print > Select 'Print selection'
/Per