I would like to define a variable that is comprised of (3) rows (that is why I am using the resize(3,1) command) - but the range location is unknown so I have to used the find command.
Dim xyz_rows As Long
xyz_rows = Sheet5.Range("C:C").Find("example", , xlValues, xlWhole, xlByRows, , True).Resize(3, 1).Row
I dont know if that is correct or not. Do I use ".Row" or ".Rows" since its more than one?
Then once that range is found, I am writing a if statment that will do the following:
Sheet5.Rows(xyz_rows).EntireRow.Hidden = True
But of coarse, this isnt working correctly, so hence my post. How do I accomplish this correctly?
Thanks in advance.
Bookmarks