Public Function GetFileNameFromFullPath( _
sFullFileNameWithPath As String _
) as String
Dim fs As Object
Set fs = CreateObject("Scripting.FileSystemObject")
GetFileNameFromFullPath = _
fs.GetFilename( _
sFullFileNameWithPath _
)
Set fs = Nothing
End Function
Leave a Reply