I have a worksheet which contains a procedure to run when the pivot table is changed. It is listed as Public Sub. The code in the pivot table reformats the pivot table in the manner requested by the users each time there is a change. The code sets various colors and other formatting. When the pivot table is printed the pivot table reverts back to one of the pivot table designs and this does not trigger the change. There is a "button" on the pivot table sheet which runs a macro to print the pivot table. It sets the appropriate printing requirements prior to printing. The print sub is located in a module. I am attempting to call the Pivot Table Update sub from the print sub. I have searched and not found an answer which provides a solution,
I have tried Call Sheet3.Worksheet_PivotTableUpdate, Sheet3.Worksheet_PivotTableUpdate and a couple of other variations. Is this possible or do I need to copy the PivotTableUpdate code into the print code after printing?
Thank you in advance for your time and responses. I will return to work Monday morning and provide any additional information needed.
I have tried Call Sheet3.Worksheet_PivotTableUpdate, Sheet3.Worksheet_PivotTableUpdate and a couple of other variations. Is this possible or do I need to copy the PivotTableUpdate code into the print code after printing?
Thank you in advance for your time and responses. I will return to work Monday morning and provide any additional information needed.