I previously asked about a row hiding problem, as expressed in the link below:
http://www.mrexcel.com/board2/viewtopic.php?t=72813
I've found a solution to achieve my row-hiding needs, but I need to know how to add to this code to trigger the macro to run. Here's the code:
What I need to add is running this anytime a change is made on another sheet in the workbook range: All Accounts!A19:All Accounts!M318
What should I add to this code to make this work?
Thanks!
Rich
http://www.mrexcel.com/board2/viewtopic.php?t=72813
I've found a solution to achieve my row-hiding needs, but I need to know how to add to this code to trigger the macro to run. Here's the code:
Code:
Sub HideRowIfZero()
'Hides row(s) with zero so chart does not show zero or it's coresponding label entry.
For Each c In Worksheets("Summary & Graphs").Range("B506:B519")
If c.Value = 0 Then
c.Activate
Selection.EntireRow.Hidden = True
End If
Next c
For Each c In Worksheets("Summary & Graphs").Range("B506:B519")
If c.Value > 0 Then
c.Activate
Selection.EntireRow.Hidden = False
End If
Next c
End Sub
What I need to add is running this anytime a change is made on another sheet in the workbook range: All Accounts!A19:All Accounts!M318
What should I add to this code to make this work?
Thanks!
Rich