• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Dynamic file path updating pivot table using macro

Status
Not open for further replies.

Danny

Member
Hi all

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
 

Attachments

  • Pivot Table Error.PNG
    Pivot Table Error.PNG
    16.6 KB · Views: 3
Last edited:
This topic is the same as last question of this, just a few hours of difference:
http://chandoo.org/forum/threads/dynamic-file-path-updating-pivot-table-using-macro.13782

What you're doing "is called cross-posting and is generally frowned upon in the Blogosphere as it causes people to potentially waste our time when a question is already answered or to disperse our efforts thru repeated threads on the same subject. You should also check and respond to posts and let posters know if they are heading in the write direction or not." Hui's dixit, SIC. And I agree 101%.

If you'd have read the main green sticky post at this forums main page...
http://chandoo.org/forum/threads/new-users-please-read.294/
...you should have noticed this points:

"Consider that the world is operating 24hrs a day. A late post today may well be answered by someone else overnight."

"If you and a reader have been involved in an ongoing conversation and the conversation suddenly stops, recognize that the person may have gone to bed, even though you have just arrived at work. In the worst case a reader may go on holidays and not get back to the question for a few days."

"Never title your posts as "Urgent", "Priority" "Immediate". It may be Important to you, but not for rest of the members here. These words will be moderated out."

"Cross Posting, generally it is considered poor practice to cross post, that is to post the same question on several forums in the hope of getting a response quicker.
If you do cross post, please put that in your post.
Also if you have cross posted and get an answer elsewhere, have the courtesy of posting the answer here so other readers can learn from the answer also, as well as stopping people wasting there time on your answered question."

"Say "Thanks", whenever you can. Recognize when someone has bothered to go to the trouble and time to assist you with your question for free. Often readers will spend several hours working on a solution to a problem, a line of recognition will go a long way."
 
Status
Not open for further replies.
Back
Top