📜  excel vba 提取文件名 - VBA 代码示例

📅  最后修改于: 2022-03-11 14:51:54.957000             🧑  作者: Mango

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