Lefemmenikita
Board Regular
- Joined
- Jan 28, 2014
- Messages
- 59
- Office Version
- 2013
- Platform
- Windows
Hi
I have multiple excel workbooks with pivot tables pointing to an external spreadsheet (referred to as 'source')
Every month, I save both the excel workbooks and the source workbook into a new folder.
I don't rename any of the files.
is there any vba code which I can use to update the data source of the pivot tables in the target file so it points to the 'source' workbook which is saved in the same folder as it?
e.g. In the Sep-16 subfolder, if there is a workbook with a pivot, I want the pivot to point to the workbook called 'source' which is also saved in the Sep sub folder and not the file called 'source' saved in the Aug-16 subfolder.
Hope this makes sense.
I have attached screencaps of what this is supposed to look like
I have multiple excel workbooks with pivot tables pointing to an external spreadsheet (referred to as 'source')
Every month, I save both the excel workbooks and the source workbook into a new folder.
I don't rename any of the files.
is there any vba code which I can use to update the data source of the pivot tables in the target file so it points to the 'source' workbook which is saved in the same folder as it?
e.g. In the Sep-16 subfolder, if there is a workbook with a pivot, I want the pivot to point to the workbook called 'source' which is also saved in the Sep sub folder and not the file called 'source' saved in the Aug-16 subfolder.
Hope this makes sense.
I have attached screencaps of what this is supposed to look like