RockandGrohl
Well-known Member
- Joined
- Aug 1, 2018
- Messages
- 807
- Office Version
- 365
- Platform
- Windows
Hi guys,
I have a folder path and I'm just trying to extract the string after the last "\" in the string. I remember this needs something like Split & InStrRev but I can't quite remember how to do it as it's been a couple years since playing with VBA.
When I do something like
it gives me the position of the last occurrence of the slash, in this instance it's position 106.
Thanks
I have a folder path and I'm just trying to extract the string after the last "\" in the string. I remember this needs something like Split & InStrRev but I can't quite remember how to do it as it's been a couple years since playing with VBA.
When I do something like
VBA Code:
WeekData = InStrRev(MyFolder, "\")
it gives me the position of the last occurrence of the slash, in this instance it's position 106.
Thanks