📅  最后修改于: 2022-03-11 14:51:54.007000             🧑  作者: Mango
fileName = ThisWorkbook.Name
Debug.Print fileName ' With extension
If InStr(fileName, ".") > 0 Then
fileName = Left(fileName, InStr(fileName, ".") - 1)
Debug.Print fileName ' Without extension
End If