I have a directory with files of various names. I need to strip out only the name of the file, but how to I get the name at the end of the directory/file name string. For example, below
is a fulle name, but I only want what is after the Appr_, that is, I only need Appr_01AB55279_20060803.pdf
Dim A() As StringDim B As StringB = "\\sf4\user1\Private\ACH\OID\Repository\SCANNED DOCS\S\Appr_01AB55279_20060803.pdf"A = Split(B, "\")Debug.Print A(UBound(A))
This worked. The Split did not return what I needed. Thank you both.
Microsoft Access
Microsoft Access is a rapid application development (RAD) relational database tool. Access can be used for both desktop and web-based applications, and uses VBA (Visual Basic for Applications) as its coding language.
Open in new window