I need to extract a filename from a string.
If my users were to name files exactly as they should be, then I could possibly extract from the length of the string.
i.e. Right$(Filename),13 but users don’t always conform to what they should do.
So the string would be:
L:MMpdfEstPDF12345-est.pdf
L:MMpdfEstPDF12345-int.pdf
L:MMpdfEstPDF12345-aut.pdf
But they on occasion name
L:MMpdfEstPDF12345-est.pdf
L:MMpdfEstPDF12345-int.pdf
L:MMpdfEstPDF12345-auth.pdf
L:MMpdfEstPDF12345-part.pdf
In this occasion the characters would be 14 because of the auth & the part after the number.
Is there a function to extract to the last separator making the filename always extractable in full ?