Answers for "excel vba extract file name"

VBA
1

excel vba extract file name

Dim path As String
path = "C:\Temp\data\myfile.txt"
Debug.Print Mid$(path, InStrRev(path, "\") + 1)    ' -> myfile.txt
Posted by: Guest on February-13-2021

Code answers related to "VBA"

Browse Popular Code Answers by Language