Hello, me again 
In my task database, coworker wants to be able to link a file (report,...) to a task, when its completed. I already got it all set up for adding, also got it working to add a link to one file. Here is the catch, right now I am using this:
This one is only able to select files in dialog box. I know you can select DIR if you use Application.FileDialog(4), but I wonder, if it's possible to be able to select either file or directory, or will I have to make 2 separate dialogs?

In my task database, coworker wants to be able to link a file (report,...) to a task, when its completed. I already got it all set up for adding, also got it working to add a link to one file. Here is the catch, right now I am using this:
Code:
Public Function FileSelection() As String
Dim objFD As Object
Dim strOut As String
strOut = vbNullString
Set objFD = Application.FileDialog(3)
If objFD.Show = -1 Then
strOut = objFD.SelectedItems(1)
End If
Set objFD = Nothing
FolderSelection = strOut
End Function
This one is only able to select files in dialog box. I know you can select DIR if you use Application.FileDialog(4), but I wonder, if it's possible to be able to select either file or directory, or will I have to make 2 separate dialogs?