Hi,
I have a macro that returns the file path of a document (see below).
Is it possible to return the full network location rather than the drive letter?
e.g. \\mna5dg\ewok\reports
instead of
K:\reports
Cheers
Sub getfilename()
'This macro is used in the form to get the filename
Dim fn
Range("File_Path").Clear
fn = Application.GetOpenFilename(, , "Find File")
Range("File_Path").Select
ActiveCell = fn
Calculate
End Sub
I have a macro that returns the file path of a document (see below).
Is it possible to return the full network location rather than the drive letter?
e.g. \\mna5dg\ewok\reports
instead of
K:\reports
Cheers
Sub getfilename()
'This macro is used in the form to get the filename
Dim fn
Range("File_Path").Clear
fn = Application.GetOpenFilename(, , "Find File")
Range("File_Path").Select
ActiveCell = fn
Calculate
End Sub