Quote Originally Posted by Bonnie West View Post
Code:
Public Function GetBaseName(ByRef Path As String) As String
    Dim StartPos As Long, EndPos As Long

    StartPos = InStrRev(Path, "\") + 1&
    EndPos = InStrRev(Path, ".")
    GetBaseName = Mid$(Path, StartPos, EndPos - StartPos)
End Function
Just what i needed thanks