I have tried using the following solution to print from Excel to PDF:
Excel 2013 Print to PDF in VBA
While the solution seems to have worked for other people
I had to remove line breaks in my filename's variable using the clean function:
xlName = Range("CustomerName").Value xlName = Application.WorksheetFunction.Clean(xlName)