📜  vba 获取工作簿名称 - VBA 代码示例

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

代码示例1
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