I am working on a macro that I have a browse button. It is for selecting a folder. After you finish your selections, you click OK. I want/need to verify the path of the folder exists. To that end, I searched the internet for a VBS routine. I found this one;
Code: Select all
VBSTART
function ShowParentFolderName(filespec)
var fso, s = "";
fso = new ActiveXObject("Scripting.FileSystemObject");
s += fso.GetParentFolderName(filespec);
return(s);
End Function
VBEND
So I'm uh-asking. Will some kind, mighty friendly folk, please help me out and show me how to use this in MS? Also, I'm open for any suggestions(related to my quest).
Mighty appreciative,
PepsiHog