Function PickFolder(strStartDir)
Dim SA, F
Set SA = CreateObject("Shell.Application")
Set F = SA.BrowseForFolder(0, "Choose a folder", 0, strStartDir)
If (Not F Is Nothing) Then
PickFolder = F.Items.Item.path
End If
Set F = Nothing
Set SA = Nothing
End Function
i take it you output in the post if from reading of your vairable F? in which case could you count the number of \ in the string passed ot the BrowseForFOlder method, + 1 to it then only act on the list pasted back if the string contains org + 1 \'s i know it might sound rather round the houses
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.