Check if a cell contains a word
Osefa
-
melanie1324 Posted messages 1561 Status Membre -
melanie1324 Posted messages 1561 Status Membre -
Hello,
I'm looking to test in a loop whether a cell contains the word "auto," for example.
I know the syntax for Range, which is to do:
If Range("A1").Value Like "*AUTO*" Then
But I would like to find the syntax for Cells (more convenient for me).
Thank you!
I'm looking to test in a loop whether a cell contains the word "auto," for example.
I know the syntax for Range, which is to do:
If Range("A1").Value Like "*AUTO*" Then
But I would like to find the syntax for Cells (more convenient for me).
Thank you!
I thought we could access the content of Cells without using value, right?
if range("A1").value = 1
if range("A1") = 1
if cells(1,1).value = 1
if cells(1,1) = 1
means exactly the same thing.