View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.misc
Gary''s Student Gary''s Student is offline
external usenet poster
 
Posts: 11,058
Default Need to Use 1 Button to toggle On or Off

Include this line:

Rows.Hidden = False

It will unhide all rows
--
Gary''s Student - gsnu200759


"Jim May" wrote:

This works perfectly:

Sub HideZeroRows()
'to hide calculated items that equal zero
'hide worksheet rows that contain zeros
'by John Green
Dim rRow As Range
Application.ScreenUpdating = False
For Each rRow In ActiveSheet _
.PivotTables(1).DataBodyRange.Rows
If Application.Sum(rRow) = 0 Then
rRow.EntireRow.Hidden = True
End If
Next rRow
Application.ScreenUpdating = True
End Sub

There is a Macro that will **If no rows are
hidden - Run the Macro and If Rows Are hidden
UnHide All Rows. But how is this done?
Any assistance appreciated..