match function code?
This produces the following error code...
Run Time error 91
Object variable or With Block variable not set
Any ideas?
-----Original Message-----
Have not tried this with 255+ characters but otherwise
it works for me:
Sub FindA1()
Dim Rng As Range
Set Rng = Range("C:C").Find(What:=Range("A1"))
Range("B1") = Rng.Row
End Sub
"JayL" wrote:
All,
Looking for code to read contents of cell A1, search
column C for any cell
that contains A1 anywhere in a cell and return the row
number of any finds
in Column C to cell B1.
I used the match function and it works but has a 255
character cell
limitation, which I need to surpass.
TIA,
J
.
|