📜  excel vba获取当前工作簿的路径 - VBA代码示例

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

代码示例1
'VBA function to retrieve this workbook's full path:

Function FullPath()
    With ThisWorkbook
        FullPath = .Path & Application.PathSeparator & .FullName
    End With
End Function

'--------------------------------------------------------------------

MsgBox FullPath