I am currently trying to get a pivot table to update the data source and refresh by making use of a macro.
This works correctly on my local machine, however when i send it to a colleague it errors. This is because when updating the data source its calling my profile rather than a dynamic address. When another user runs this macro obviously the address cannot be found and the code errors.
Is there a way to edit the data source without and make use of a dynamic address rather than a static one? I have attached sample code to help my explanation.
Thank you in advance
Danny
This works correctly on my local machine, however when i send it to a colleague it errors. This is because when updating the data source its calling my profile rather than a dynamic address. When another user runs this macro obviously the address cannot be found and the code errors.
Is there a way to edit the data source without and make use of a dynamic address rather than a static one? I have attached sample code to help my explanation.
Thank you in advance
Danny