SyntaxFix
Write A Post
Hire A Developer
Questions
To get the file name in an excel macro is:
filname = Mid(spth, InStrRev(spth, "\", Len(spth)) + 1, Len(spth)) MsgBox Mid(filname, 1, InStr(filname, ".") - 1)