Hi all,
I want to make the spread sheet automatically run this macro code when a number is inputted into column B
what code do i need to add to it
Sub Ratio_BC()
Dim Lastrow As Long
Application.ScreenUpdating = False
Lastrow = Range("B" & Rows.Count).End(xlUp).Row
Range("D2:D" & Lastrow).Formula = "=IF(ISNUMBER(--MID($B:B,SEARCH(""241"",$B:B),3)),MID($B:B,18,10))"
Application.ScreenUpdating = True
End Sub
thanks
I want to make the spread sheet automatically run this macro code when a number is inputted into column B
what code do i need to add to it
Sub Ratio_BC()
Dim Lastrow As Long
Application.ScreenUpdating = False
Lastrow = Range("B" & Rows.Count).End(xlUp).Row
Range("D2:D" & Lastrow).Formula = "=IF(ISNUMBER(--MID($B:B,SEARCH(""241"",$B:B),3)),MID($B:B,18,10))"
Application.ScreenUpdating = True
End Sub
thanks