MyFile = Application.GetOpenFilename("(*.txt),*.txt)")
a = Split(MyFile, "\") Имя_без_пути = a(UBound(a))