With Sheets("FOB")
Set RechercheILN2 = .Range(.Cells(3, 2), .Cells(.Cells(65536, 2).End(xlUp).Row, 2))
Set f = RechercheILN2.Find(What:=ILN, LookIn:=xlValues, lookat:=xlPart) 'recherche de la FOB relative à l'ILN
End With
With Sheets("Parités")
Set RechercheHorizon = .Range(.Cells(1, 5), .Cells(1, .Cells(1, 256).End(xlToLeft).Column)) 'recherche dans l'ensemble des années table parité
Set horizon = RechercheHorizon.Find(What:=ComboBox_horizon.Text, LookIn:=xlValues, lookat:=xlPart) 'recherche de l'horizon sélectionné par l'utilisateur
Set RechercheDevise = .Range(.Cells(2, 4), .Cells(.Cells(65536, 4).End(xlUp).Row, 4)) 'recherche dans la liste des formats de devises
End With
format = CStr(f.Offset(0, 2).NumberFormat)
[COLOR="Red"][SIZE="2"][B]Set devise = RechercheDevise.Find(What:=format, LookIn:=xlValues, lookat:=xlPart)[/B][/SIZE][/COLOR]
If Not devise Is Nothing Then
Sheets("Synthèse").Cells(28, der_colonne).Value = Round(f.Offset(0, 2).Value / Sheets("Parités").Cells(devise.Row, horizon.Column) / 65, 1)
Sheets("Synthèse").Cells(28, der_colonne + 1).Value = Round(f.Offset(0, 2).Value / Sheets("Parités").Cells(devise.Row, horizon.Column) / 65, 1)
End If
Sheets("Synthèse").Cells(29, der_colonne).Value = f.Offset(0, 2).Value
Sheets("Synthèse").Cells(29, der_colonne + 1).Value = f.Offset(0, 2).Value
port_ILN = f.Offset(0, 1).Value