reubanrao93
New Member
- Joined
- Dec 7, 2020
- Messages
- 20
- Office Version
- 365
- Platform
- Windows
Hi guys,
Currently im try to search a cell if it contain two specific text inside it using InStr function. However it is not working. Anything am I missing here?
If InStr(1, (Range("L1").Value), "Hello ") > 0 And InStr(1, (Range("L1").Value), "name ") Then
The tresult im loking for should be like this
Cell L1: "Hello there my name is" should be true
Cell L1: "Hello there my is " should be false
Cheers
Currently im try to search a cell if it contain two specific text inside it using InStr function. However it is not working. Anything am I missing here?
If InStr(1, (Range("L1").Value), "Hello ") > 0 And InStr(1, (Range("L1").Value), "name ") Then
The tresult im loking for should be like this
Cell L1: "Hello there my name is" should be true
Cell L1: "Hello there my is " should be false
Cheers