Spielberg
04-26-2021, 09:26 PM
Hello all excel gurus.
Using Excel 2019 VBA, just trying to do a simple find and select of a cell.
Trying a find a standard numerical value within a range.
For this example, let's say the range for the number to find contains 123.
"NumberList" is a named range covering B49:S72
N = Range("AV5").Value
Set Num2Find = Range("NumberList").Find(What:=N)
Num2Find returns "Nothing"
Then I tried
Set Num2Find = Range("NumberList").Find(What:=Range("AV5").Value)
Num2Find returns "Nothing"
Then I tried
Set Num2Find = Range("NumberList").Find(What:=124)
Num2Find returns "Nothing"
I really don't know why! I just want it to select the cell once it find it. The number definitely exists.
Can someone help please?
Thank you in advance!
Mike
Using Excel 2019 VBA, just trying to do a simple find and select of a cell.
Trying a find a standard numerical value within a range.
For this example, let's say the range for the number to find contains 123.
"NumberList" is a named range covering B49:S72
N = Range("AV5").Value
Set Num2Find = Range("NumberList").Find(What:=N)
Num2Find returns "Nothing"
Then I tried
Set Num2Find = Range("NumberList").Find(What:=Range("AV5").Value)
Num2Find returns "Nothing"
Then I tried
Set Num2Find = Range("NumberList").Find(What:=124)
Num2Find returns "Nothing"
I really don't know why! I just want it to select the cell once it find it. The number definitely exists.
Can someone help please?
Thank you in advance!
Mike