Private Sub ListBox_Results_Click()
'Go to selection on sheet when result is clicked
Dim strAddress As String
Dim strSheet As String
Dim strCell As String
Dim l As Long
For l = 0 To ListBox_Results.ListCount
If ListBox_Results.Selected(l) = True Then
strAddress = ListBox_Results.List(l, 1)
strSheet = Replace(Mid(strAddress, 1, InStr(1, strAddress, "!") - 1), "'", "")
Worksheets(strSheet).Select
Worksheets(strSheet).Range(strAddress).Select
rij = Val(Split(strAddress, "$")(2))
t_range = Application.Transpose(Application.Transpose(Range("A" & rij & ":AB" & rij)))
With f_FindAll
.TextBox1.Value = t_range(1)
.TextBox_Results1.Value = t_range(2)
.TextBox_Results2.Value = t_range(3)
.TextBox2.Value = t_range(4)
.TextBox3.Value = t_range(5)
.TextBox4.Value = t_range(6)
.TextBox5.Value = t_range(7)
.TextBox6.Value = t_range(8)
.TextBox7.Value = t_range(9)
.TextBox8.Value = t_range(10)
.TextBox11.Value = t_range(13)
.TextBox10.Value = t_range(14)
.TextBox12.Value = t_range(15)
.TextBox13.Value = t_range(12)
.TextBox14.Value = t_range(16)
.TextBox15.Value = t_range(17)
.TextBox16.Value = t_range(18)
.TextBox17.Value = t_range(19)
.TextBox18.Value = t_range(25)
.TextBox19.Value = t_range(26)
.TextBox20.Value = t_range(27)
.TextBox10.Text = Format(CDate(TextBox10.Text), "dd/mm/yyyy")
' HIER HIER HIER
If Left(TextBox1.Text, 1) = "C" Then .foto.Picture = LoadPicture("D:\Covers\" & t_range(1) & ".jpg")
If Left(TextBox1.Text, 1) = "P" Then .foto.Picture = LoadPicture("D:\Covers1\" & t_range(1) & ".jpg")
' .Image3.Picture = LoadPicture("D:\Covers\" & t_range(20) & ".jpg")
' .Image4.Picture = LoadPicture("D:\Covers\" & t_range(28) & ".jpg")
'hyperlink
.hyperlink.Text = t_range(11)
.Hyperlink1.Text = t_range(21)
.Hyperlink2.Text = t_range(22)
End With
Exit Sub
End If
Next l
End Sub