I have a pivot table which normally shows anywhere from 5 to 30 columns, depending on how many calls a rep has made that day (1 column per call).
I am trying to create a macro to do this automatically, but when I run the macro, only the first column shows up. If I click on the "Export to Excel" icon on the chart in QV, it exports to Excel just fine. Here's my macro code:
Sub MakeExcelFile ' This sub opens an Excel template, copies the chart over, reformats the Excel ' file using a macro, and then saves the file to a unique file name.