Function to retrieve only file name from a path.
Function to retrieve only file name from a path.
Rate Function to retrieve only file name from a path.
(1(1 Vote))
'Parses the filename out of a directory string
Dim i As Integer
On Error Resume Next
For i = Len(FileName) To 1 Step -1
If Mid(FileName, i, 1) = "\" Then
Exit For
End If
Next
GetFileName = Mid(FileName, i + 1)
End Function
Function to retrieve only file name from a path. Comments
No comments yet — be the first to post one!
Post a Comment