In searching the archives, I can’t seem to find any code on setting a target directory with a msgBox.
I’ve got this:
Dim strPathAndFile As String
strPathAndFile = Application.GetOpenFilename
Which returns “C:windowsdesktopprojecttestdatafilename.xls
But I can’t find the code to chop off the “filename.xls” leaving the directory path.
What I’m looking for is:
strDirPath = {magic applied to (strPathAndFile)}
Links or code anyone?
Thanks in advance.