If any custom function contains any thing include white spaces it will be printed out when you select to print a range. Try to Print Preview to check out which function has non empty content and delete them before printing. You can drag the preview windows to full screen to see content clearly.