I'm still a newbie working in VBA language. I need help on the InStr method, I trying to make my criteria in the excel sheet range.
Sub AddressCode()
Dim lastrow As Long
Dim i As Integer, icount As Integer
lastrow = ActiveSheet.Range("A30000").End(xlUp).Row
For i = 1 To lastrow
If InStr(1, (Range("A" & i)), "Taman") <> 0 Then
icount = icount + 1
Range("H" & icount & ":L" & icount) = Range("A" & i & ":E" & i).Value
End If
Next i
End Sub
How can I list the result as my criteria and the result is offset from my row Address. For example, Column A : Alex is jogging at the park. Criteria list: Jogging, Running, Jumping and etc.
The Result will be Column A Alex is jogging at the park, and Column B Jogging