Use INSTRREV
string = "dummy1\dummy3\cat\test"
string = mid(string,instrrev(string,"\") + 1)
The instrrev will find the position of the last back slash in the
string. You add one to get everything after the last back slash.
--
joel
------------------------------------------------------------------------
joel's Profile:
http://www.thecodecage.com/forumz/member.php?userid=229
View this thread:
http://www.thecodecage.com/forumz/sh...d.php?t=158814
Microsoft Office Help