Lefemmenikita
Board Regular
- Joined
- Jan 28, 2014
- Messages
- 59
- Office Version
- 2013
- Platform
- Windows
Hi
I was wanting a vba code to update the data source for a pivot in a file so that it points to the current month.
E.g, I have a file called 'Manufacturing Month end May 2017'. This file is saved under C:/Accounts/May 17.
There is a pivot in that file pointing to[C:/Accounts/May 17/Raw data.xls]sheet1!A:Z
Now, when I save that file into the Jun folder, I want the pivot to now point to
[C:/Accounts/Jun 17/Raw data.xls]sheet1!A:Z
The 'Manufacturing Month end Jun 2017' report file will always be saved in the same network folder as the raw data
Thanks
I was wanting a vba code to update the data source for a pivot in a file so that it points to the current month.
E.g, I have a file called 'Manufacturing Month end May 2017'. This file is saved under C:/Accounts/May 17.
There is a pivot in that file pointing to[C:/Accounts/May 17/Raw data.xls]sheet1!A:Z
Now, when I save that file into the Jun folder, I want the pivot to now point to
[C:/Accounts/Jun 17/Raw data.xls]sheet1!A:Z
The 'Manufacturing Month end Jun 2017' report file will always be saved in the same network folder as the raw data
Thanks