I'm trying to take a text file with about 45,000 entries similar to this format:
\\Servername\share\folder\folder\file.xls
The number of subfolders varies. What I need to do is get rid of everything to the left to include the last \. I was working with the split function but don't know how to get it started from the right side of the text line. It would be easy if I could start spitting from the right side and therefore split on the first instance of \. Since the number varies, can I use ubound or something similar?
Any help would be appreciated.
Sorry I didn't post any code because frankly, everything I've tried hasn't worked.
Thanks
\\Servername\share\folder\folder\file.xls
The number of subfolders varies. What I need to do is get rid of everything to the left to include the last \. I was working with the split function but don't know how to get it started from the right side of the text line. It would be easy if I could start spitting from the right side and therefore split on the first instance of \. Since the number varies, can I use ubound or something similar?
Any help would be appreciated.
Sorry I didn't post any code because frankly, everything I've tried hasn't worked.
Thanks