Bonjour toutes et tous et meilleurs voeux 2019,
coucou Lourred
@JIDE,
à tester:
et pourquoi pas directement en 1 clic gauche de la souris sur ta listbox de ton usf au lieu du double clic gauche par un simple clic gauche
et vérifie avec celui-là
Private Sub LB_BDD_Click()
Sheets("FM-DT").Select
Sheets("FM-DT").range("B3").Value = LB_BDD.ListIndex + 23
Affichage.Caption = Sheets("FM-DT").range("w6")
'copy ligne
Sheets("FM-DT").range(Cells(6, 1), Cells(6, 40)).Copy
Sheets("FM-DT").range(Cells(10, 1), Cells(10, 40)).Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Sheets("FM-DT").range("z6").Copy 'nom agents formules
Sheets("FM-DT").range("z10").Select
Selection.PasteSpecial Paste:=xlPasteFormulas, Operation:=xlNone, _
SkipBlanks:=False, Transpose:=False
Call maj
Application.CutCopyMode = False
Dim indexc As Integer
indexc = Sheets("FM-DT").range("B3").Value - 23
LB_BDD.ListIndex = indexc
End Sub
j'ai testé et cela fonctionne,
crdlt,
André