How to split filename from filepath?
If I retrieve a filename including the filepath like this:
strFileName = Application.GetOpenFilename("Report (*.txt; *.dat ),*.txt;
*.dat")
How do I manipulate the strFileName, retrieving only the filename?
(guess I have to search from right to find the first "\". Then delete the
content to the left of this character. But I don't know how this works in VBA)
Thanks for suggestions.
Frank
|