Pivot Table and Zeros

D

Debra Dalgleish

You could use the PivotTableUpdate event to run it when the pivot table
is refreshed. For example:

'==========================
Private Sub Worksheet_PivotTableUpdate(ByVal Target As PivotTable)
HideZeroRowTotals
End Sub
'===================

The HideZeroRowTotals code goes on a regular module and the
PivotTableUpdate code goes on the module for the sheet that contains the
pivot table.

There are instructions here for pasting the code:

http://www.contextures.com/xlvba01.html
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top