VBABEGINER
Well-known Member
- Joined
- Jun 15, 2011
- Messages
- 1,284
- Office Version
- 365
- Platform
- Windows
Hi Experts,
I want below code in formula.. Pls assist..
tpa = is a word available in cell
wherever i will find tpa, next cell of that should be return 1 or 0
I want below code in formula.. Pls assist..
tpa = is a word available in cell
wherever i will find tpa, next cell of that should be return 1 or 0
Code:
Dim myRange As Range
Dim myCell As Range
rng = Range("B" & Rows.Count).End(xlUp).Row
Set myRange = Range("B2:B" & rng)
'example= ABC tpa PQR
For Each myCell In myRange
If myCell Like "*tpa*" Then
end if
next