Public Function withoutBS(Path As String) As String If Right$(Path, 1) = "\" Then withoutBS = Left$(Path, Len(Path) - 1) Else withoutBS = Path End If End Function