Hi Mark,
Now I am able to insert my and refresh the report. its hiding the rows which contain the 74*** Series.
But the problem is when the cost center chages the from the current view the showing some different result. I mean the sorting order total changed and ther previous hide rows are like that only...
please see the below code as reference.
Sub Refresh
Application.Run ("MNU_eTools_REFRESH")
Dim LR As Long: LR = Range("J" & Rows.Count).End(xlUp).Row
For I = 1 To LR
If Trim(Range("J" & I).Value) >= 740000 And Trim(Range("J" & I).Value) <= 741100 Then
Range("J" & I).EntireRow.Hidden = True
End If
If Trim(Range("K" & I).Value) = "TOTAL OFFICE_OTH" Then
Range("K" & I).EntireRow.Hidden = True
End If
Next I
End Sub
when the cost center changes the privously hidden rows has to be displayed and then hide the 74*** Series
Thanks,
Mallikarjunreddy.G