Private Sub Worksheet_Change(ByVal Target As Range)
'Updateby Extendoffice
Dim xRg As Range
Application.ScreenUpdating = False
For Each xRg In Range("I6:I1000")
If xRg.Value = "" Then
xRg.EntireRow.Hidden = True
Else
xRg.EntireRow.Hidden = False
End If
Next xRg
Application.ScreenUpdating = True
Private Sub Worksheet_Change(ByVal Target As Range)
'Updateby Extendoffice
Dim xRg As Range, Ar(), a, n%,xD
Set xD = CreateObject("Scripting.Dictionary")
n = 0
Application.ScreenUpdating = False
For Each xRg In Range("I6:I10000")
If xRg.Value = "" Then
xRg.EntireRow.Hidden = True
Else
xRg.EntireRow.Hidden = False
If xD.exists(xRg.Value) = False Then
xD(xRg.Value) = "": ReDim Preserve Ar(n)
Ar(n) = Application.CountIf(Columns("I"), xRg)
n = n + 1
End If
End If
Next
a = Join(Ar, ",")
Application.ScreenUpdating = True
Private Sub Worksheet_Change(ByVal Target As Range)
'Updateby Extendoffice
Dim xRg As Range, Ar(), a, n%, xD
Set xD = CreateObject("Scripting.Dictionary")
n = 0
Application.ScreenUpdating = False
For Each xRg In Range("I6:I10000")
If xRg.Value = "" Then
xRg.EntireRow.Hidden = True
Else
xRg.EntireRow.Hidden = False
If xD.exists(xRg.Value) = False Then
xD(xRg.Value) = "": ReDim Preserve Ar(n)
Ar(n) = Application.CountIf(Columns("I"), xRg)
n = n + 1
End If
End If
Next
If UBound(Ar) > 0 Then
For j = 0 To UBound(Ar): a = a + Ar(j): Next
End If
Application.ScreenUpdating = True