I am trying to search for a paragraph, which is written in a cell over a range of other cells, with the intention of hiding the row that contains it. Since all this needs to be automated, I'm trying to use VBA script like
Set result = searchRange.Find(What:=search, LookIn:=xlValues)
If result Is Nothing Then
Exit Sub
End If
Range(result.MergeArea.Address).EntireRow.Hidden = True
But the paragraph I'm looking for is 300+ characters - larger than the character limit the range.Find method has, so Result comes back as nothing when it should not be.
Does anyone have some idea on how to get around this?
Bookmarks