Sub showNameOnly()
searchKey = “\”Path = “C:\Test\Sample\Job\KentLau”lastSlashPosition = InStrRev(Path, searchKey, -1)MsgBox Len(Path) - lastSlashPositionMsgBox Right(Path, 7)
End Sub
Post a Comment
No comments:
Post a Comment