Hi,
I have 02 worksheets and in each worksheets I have 02 pivottable that are linked to the same source (datatable). In each worksheet, I have a code to have different format in terms of rows, columns... However, when I run the macro in worksheet 1 , the format of worksheet 1 is as expected then I run the macro in worksheet 2, the format of worksheet 2 is as expected however when I come back worksheet 1, the format is totally back to "unformated". How can I stop this?
I tried to use this:
in WS1: ActiveSheet.PivotTables("Main").RefreshTable
in WS2: ActiveSheet.PivotTables("Sub").RefreshTable
I named 02 pivots with the name "Main" and "Sub", respectively
to differeniate 02 pivots and only refresh in that Sheet only; however, it does not work.
Thanks for support!
I have 02 worksheets and in each worksheets I have 02 pivottable that are linked to the same source (datatable). In each worksheet, I have a code to have different format in terms of rows, columns... However, when I run the macro in worksheet 1 , the format of worksheet 1 is as expected then I run the macro in worksheet 2, the format of worksheet 2 is as expected however when I come back worksheet 1, the format is totally back to "unformated". How can I stop this?
I tried to use this:
in WS1: ActiveSheet.PivotTables("Main").RefreshTable
in WS2: ActiveSheet.PivotTables("Sub").RefreshTable
I named 02 pivots with the name "Main" and "Sub", respectively
to differeniate 02 pivots and only refresh in that Sheet only; however, it does not work.
Thanks for support!