Hi, all
how do i convert the formula like "=MID(D5,FIND("E",D5)+1,5)" to using in my macros below :
[VBA]LR = Range("C" & Rows.Count).End(xlUp).Row
For R = 1 To LR
If Cells(R, 4).Value Like "*" & "STATUS CODE" & "*" Then
Sheet2.Cells(IndexI, 4).Value =" the mid and fing formula "
End If
Next R
[/VBA]
actually loop the wording is "STATUS CODE 92 * DADS# 06 * " but i just only want the code "92"
experts kindly help and learn me more thxx