Excel VBA - How to Get Excel File Path

Published: 15 December 2014
on channel: InAnOffice
15,085
71

Excel VBA - Learn how to get the path of the current file

The code used in this video:


Sub GetPath()

Dim pathWithFileName As String
Dim pathWithoutFileName As String


pathWithFileName = Application.ActiveWorkbook.FullName
pathWithoutFileName = Application.ActiveWorkbook.Path

MsgBox pathWithFileName
MsgBox pathWithoutFileName


End Sub


Watch video Excel VBA - How to Get Excel File Path online without registration, duration hours minute second in high quality. This video was added by user InAnOffice 15 December 2014, don't forget to share it with your friends and acquaintances, it has been viewed on our site 15,085 once and liked it 71 people.