Using openpyxl to refresh pivot tables in Excle
问题 I have a file that has several tabs that have pivot tables that are based on one data tab. I am able to write the data to the data tab without issue, but I can't figure out how to get all of the tabs with pivot tables to refresh. If this can be accomplished with openpyxl that would be ideal. 回答1: I have similar problem but i thinking that this is thing very particularity of Excel, then, i have two solutions: Firts, mark the pivottables for that updating when open file excel, for example: