Public Sub StripFilename()
Dim i As Long, _
j As Long, _
LR As Long
With Application
.ScreenUpdating = False
.Calculation = xlCalculationManual
End With
LR = Range("A" & Rows.Count).End(xlUp).Row
For i = 1 To LR
Range("B" & i).Value = Application.Replace(Range("A" & i).Value, 1, InStr(Application.Substitute(Range("A" & i).Value, "\", "$$", _
Len(Application.Substitute(Range("A" & i).Value, "\", "$$")) - Len(Range("A" & i).Value)), "$$"), "")
Range("A" & i).Value = Left$(Range("A" & i).Value, InStr(Application.Substitute(Range("A" & i).Value, "\", "$$", Len(Application.Substitute(Range("A" & i).Value, "\", "$$")) - Len(Range("A" & i).Value)), "$$"))
Next i
With Application
.ScreenUpdating = True
.Calculation = xlCalculationManual
End With
End Sub