Hi. I am having issues with a pivot table refresh.
I have a n excel template which contains a pivot table. Periodically I paste new data into a worksheet and run a macro to format the data, do some calculations and then refresh the pivot table on another worksheet. This macro all runs fine. After I have added some notes to the data I then click again to manually refresh the data and get the following error:
On start up my data source for the pivot table is ''Data Tab'!$B:$AQ'
My data is pasted into 'Data Tab' columns A to AL
When I run the macro its adds some extra columns and my data range ends up as 'Data Tab' columns A to AQ but the data source for the pivot table has now changed to 'Data Tab'!$B:$AR.
There is nothing in column AR and this isn't used through the whole process.
Any idea where this extra column on my data source is coming from and how I can stop it?
Thanks
I have a n excel template which contains a pivot table. Periodically I paste new data into a worksheet and run a macro to format the data, do some calculations and then refresh the pivot table on another worksheet. This macro all runs fine. After I have added some notes to the data I then click again to manually refresh the data and get the following error:
On start up my data source for the pivot table is ''Data Tab'!$B:$AQ'
My data is pasted into 'Data Tab' columns A to AL
When I run the macro its adds some extra columns and my data range ends up as 'Data Tab' columns A to AQ but the data source for the pivot table has now changed to 'Data Tab'!$B:$AR.
There is nothing in column AR and this isn't used through the whole process.
Any idea where this extra column on my data source is coming from and how I can stop it?
Thanks