Macro to update Pivot Source Folder

mackcracknsack

New Member
Joined
Dec 3, 2015
Messages
11
Hi,

I am looking for a macro to update the data source automatically.
This will also mean that the table range will increase with additional rows, sometime additional columns.

Each month we receive 2 source data files which I save to our server for the given month. Both data files are saved in the same file path just depends on the new month and also year which will change e.g as below
S:\XXXX\XXXXX\XXXXX\Database\2017\08 Aug

I would like the macro to update the data source to include additional rows and columns, update all pivots in the workbook (Could range from 3-20 pivots) and include any new additional months/periods in the pivot table.


Just to note,
  1. Generally the additional month is included in the pivot table once the data source is refreshed.
  2. The majority of the Pivot table feed from one specific data file with some additional pivots coming from the second.
  3. The data files we receive a quite large and the workbook with our pivot tables can become big also.

I hope someone can help.


Thanks,

Paul
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
The file will be essentially the same but it will contain an additional months data i.e additional rows and sometimes new columns.

Our team receive a monthly data file which we use for monthly reports. The look and feel of the file is always similar but just updated with new data.

Once we receive the new file for the given month we save it to our team directory for that period.

I hope that makes sense.

Thank you
 
Upvote 0

Forum statistics

Threads
1,223,231
Messages
6,170,884
Members
452,364
Latest member
springate

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top