Zkus do procedury clicku vložit toto:
Dim soubor As String
Set dotaz = Application.FileDialog(msoFileDialogFilePicker)
With dotaz
.AllowMultiSelect = False
.InitialView = msoFileDialogViewDetails
.Title = "Vyber soubor"
.Show
For Each f In .SelectedItems
soubor = f
Next
End With
List1.Range("A1").Formula = "=HYPERLINK(" & Chr(34) & soubor & Chr(34) & ", " & Chr(34) & Dir(soubor) & Chr(34) & ")"
M@citovat
Dim soubor As String
Set dotaz = Application.FileDialog(msoFileDialogFilePicker)
With dotaz
.AllowMultiSelect = False
.InitialView = msoFileDialogViewDetails
.Title = "Vyber soubor"
.Show
For Each f In .SelectedItems
soubor = f
Next
End With
List1.Range("A1").Formula = "=HYPERLINK(" & Chr(34) & soubor & Chr(34) & ", " & Chr(34) & Dir(soubor) & Chr(34) & ")"
M@citovat