Excel Vba Extract File Name

[Solved] Excel Vba Extract File Name | Vb - Code Explorer | yomemimo.com
Question : excel vba extract file name

Answered by : vastemonde

Dim path As String
path = "C:\Temp\data\myfile.txt"
Debug.Print Mid$(path, InStrRev(path, "\") + 1) ' -> myfile.txt

Source : | Last Update : Sat, 20 Feb 21

Answers related to excel vba extract file name

Code Explorer Popular Question For Vb