Home > Forum Home > Analyzing Corporate Financial Data > How to launch Windows Explorer rooted to LAN folder > Get File Name and Directory Share

Get File Name and Directory

Excel Help for Get File Name And Directory in Analyzing Corporate Financial Data


Forum TopicLogin

Get File Name And Directory

Rate this:
(3/5 from 1 vote)
HappyAn easy way to get a directory folder path from the network is with the following VBA code:

VBA Code:
Dim fname as String
Dim diname as String
fname = Application.GetOpenFilename("All files (*.*), *.*")
dirname = Dir(fname)


Note that a file must be selected when the open file window appears in order to return the directory path.
 Excel Business Forums Administrator
 Posted by on
 
View Full Post

Find relevant Excel templates and add-ins for Get File Name and Directory in the