1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
| code1 = InputBox(Message, Title)
With ActiveSheet
Set c = Sheets(Det).Cells.Find(code1, LookAt:=xlWhole)
If Not c Is Nothing Then
firstAddress = c.Address
a = 2
Sheets("BILAN PROD").Activate 'C'EST LA QUE JE LUI DIS DE METTRE LA VALEUR OU JE VEUX'
ActiveSheet.Cells.Find(code1, LookAt:=xlWhole).Activate
With Application.ActiveCell
NumLg = .Row
End With
Sheets(Det).Activate
Do
a = a + 1
c.Offset(columnOffset:=9).Activate
Selection.Copy
Sheets("BILAN PROD").Cells(NumLg, a).PasteSpecial (xlPasteValues)
Set c = Sheets(Det).Cells.FindNext(c)
Loop While Not c Is Nothing And c.Address <> firstAddress
Else
Exit Sub
End If
End With |