Handle added for print to excel error