Private Sub Command1_Click()
Dim str As String
str = "C:\MyDocuments\Work\WorkFile.Doc"
str = Mid$(str, (InStrRev(str, "\", , vbBinaryCompare) + 1))
End Sub
But as I understand Mid, you need a string searched, a string to search and the length of the string you want returning. You don't seem to have the string length?
Am I missing something?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.