Hi!
I am using this function to open the standard browse-folder dialog... Does anyone know how I can set a default directory in which the browsing starts?
Thanks in advance
waldemar
Function findFolder() As String
Dim shellapplication As Object
Dim folder As Object
Dim optns As Integer
Set shellapplication = CreateObject("Shell.Application"![Wink ;) ;)](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
If Instructions = "" Then Instructions = "Select Folder"
optns = IIf(ShowEditBox, 17, 1)
Set folder = shellapplication.BrowseForFolder(hWndAccessApp, Instructions, optns)
If folder Is Nothing Then
findFolder = ""
Else
findFolder = folder.Self.Path
End If
Set shellapplication = Nothing
Set folder = Nothing
End Function
I am using this function to open the standard browse-folder dialog... Does anyone know how I can set a default directory in which the browsing starts?
Thanks in advance
waldemar
Function findFolder() As String
Dim shellapplication As Object
Dim folder As Object
Dim optns As Integer
Set shellapplication = CreateObject("Shell.Application"
If Instructions = "" Then Instructions = "Select Folder"
optns = IIf(ShowEditBox, 17, 1)
Set folder = shellapplication.BrowseForFolder(hWndAccessApp, Instructions, optns)
If folder Is Nothing Then
findFolder = ""
Else
findFolder = folder.Self.Path
End If
Set shellapplication = Nothing
Set folder = Nothing
End Function