hi all,
i have this code (i had a lot of help from this website already!) which hides all rows which have a value of 0, but the problem im having is if the customer go back and change one of their orders to 1 the macro still shows the row as hidden. I was wondering if anybody could possibly show me what to add to the end of this code for it to unhide rows, once a value of 1 or higher has been entered.
here's the code:
Thanks in advance,
Tom
---- Is there also a way of having the macro run all of the time? so that it updates without the user having to manually click the assigned button. thanks again
i have this code (i had a lot of help from this website already!) which hides all rows which have a value of 0, but the problem im having is if the customer go back and change one of their orders to 1 the macro still shows the row as hidden. I was wondering if anybody could possibly show me what to add to the end of this code for it to unhide rows, once a value of 1 or higher has been entered.
here's the code:
Code:
Sub subb()
Application.ScreenUpdating = False
Dim r As Long, LR As Long, stxt As String
LR = Cells(Rows.Count, "G").End(xlUp).Row
For r = LR To 2 Step -1
If Range("G" & r).Value = 0 Then
Rows(r).EntireRow.Hidden = True
End If
Next r
End Sub
Thanks in advance,
Tom
---- Is there also a way of having the macro run all of the time? so that it updates without the user having to manually click the assigned button. thanks again