GrahamUK33
Registered User.
- Local time
- Today, 06:20
- Joined
- May 19, 2011
- Messages
- 58
I have added a browse button that inserts a link address to a file on our network. The only problem I have with it is that when the link is clicked on the file does not open up.
When a website address is saved, it can be clicked on and the website will open up.
I am wondering if there needs to be a character inserted before the network address to make the link clickable.
The code I have is as follows:
When a website address is saved, it can be clicked on and the website will open up.
I am wondering if there needs to be a character inserted before the network address to make the link clickable.
The code I have is as follows:
Code:
Private Sub cmdBrowse_Click()
Dim File As Variant
File = GetFile()
If IsNull(File) Then
MsgBox "Nothing was selected", vbOKOnly
Else
Me.URL = File
End If
End Sub
Public Function GetFile() As Variant
Dim dialog As Object
Dim pickedfile As Boolean
Set dialog = Application.FileDialog(3)
GetFile = Null
With dialog
.AllowMultiSelect = False
.Title = "Please select file for import"
.Filters.Clear
like to browse for all files
pickedfile = False
pickedfile = .Show
If pickedfile Then
GetFile = .SelectedItems.Item(1)
End If
End With
End Function