Hello! Is there any way to use the Shell.Application function BrowseForFolder (or any other function for that matter) to browse for the path to a FILE as opposed to just a folder?
Here is the Syntax I'm presently using to browse for a FOLDER. I want something similar for finding a string that represents the path to a file.
Dim FolderPath As String
Dim SA As Object, F As Object
Set SA = CreateObject("Shell.Application")
Set F = SA.BrowseForFolder(0, "Choose a folder", _
0, strStartDir)
If (Not F Is Nothing) Then
FolderPath = F.Items.Item.Path
End If
...
Thanks in advance.
Here is the Syntax I'm presently using to browse for a FOLDER. I want something similar for finding a string that represents the path to a file.
Dim FolderPath As String
Dim SA As Object, F As Object
Set SA = CreateObject("Shell.Application")
Set F = SA.BrowseForFolder(0, "Choose a folder", _
0, strStartDir)
If (Not F Is Nothing) Then
FolderPath = F.Items.Item.Path
End If
...
Thanks in advance.