I have created the macro below to format a worksheet, add headers based on user input boxes then export the worksheet to a pdf. The macro works fine when I step through it,