G
GregR
I would like to hide all rows in Column J that do not contain text
"*899*" (part of account number, formatted as 000-899-000). The code
below doesn't do it. TIA
Sub HideProjectRows()
Dim intCounter As Integer
Dim Str As String
Str = "*899*"
With Sheets("Projects 05")
For intCounter = 2 To 487
If .Cells(intCounter, "J").Value <> Str Then _
.Rows(intCounter).Hidden = True
Next intCounter
End With
End Sub
Greg
"*899*" (part of account number, formatted as 000-899-000). The code
below doesn't do it. TIA
Sub HideProjectRows()
Dim intCounter As Integer
Dim Str As String
Str = "*899*"
With Sheets("Projects 05")
For intCounter = 2 To 487
If .Cells(intCounter, "J").Value <> Str Then _
.Rows(intCounter).Hidden = True
Next intCounter
End With
End Sub
Greg