1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
| Dim CL1 As Workbook
Dim FL1 As Worksheet
Dim c As Range
Private Sub CommandButton2_Click()
Set CL1 = Workbooks.Open(Filename:="D:\xls\Données.xls")
Set FL1 = CL1.Worksheets("feuil1")
With FL1.Cells
Set c = .Find(What:=TextBox1.Value, After:=ActiveCell, LookIn:=xlFormulas, LookAt:= _
xlWhole, SearchOrder:=xlByRows, SearchDirection:=xlNext, MatchCase:=False)
If Not c Is Nothing Then TextBox17.Text = c.Offset(0, 1).Address
End With
End Sub
Private Sub CommandButton9_Click()
FL1.Range(Me.TextBox17.Text).Hyperlinks(1).Follow NewWindow:=True
End Sub |