View Single Post
  #3   Report Post  
Horus Horus is offline
Junior Member
 
Location: Lund, Sweden.
Posts: 5
Thumbs up

Quote:
Originally Posted by GS[_2_] View Post
I've always found this much more consistently reliable...

Function GetDirectory$(Optional OpenAt, Optional Msg$)
Dim SH As Object

If Msg = "" Then Msg = "Please choose a folder"
Set SH = CreateObject("Shell.Application").BrowseForFolder( 0, Msg,
&H40 Or &H10, OpenAt)

On Error Resume Next
GetDirectory = SH.Self.Path
On Error GoTo 0
Set SH = Nothing
End Function 'GetDirectory()

--
Garry
Works like a charm! How do I join your fan-list Garry?