I have a string in a variable called MyPath.
MyPath = "c:\program files\microsoft\office\word.exe"
How do I strip that string so it only returns the file name.
BUT, the file name can be of any size, e.g. "excel.exe" or "ThisIsATestLetterForSomeThing.doc" etc etc
Thanks for reading