temp1 = Sheets("Data (2)").Cells(i, 3).Value
temp2 = Sheets("Data (2)").Cells(i, 6).Value
temp4 = temp1 & temp3 & temp2
temp4 = """" & temp4 & """"
Etrange manière de "travailler ainsi par tremplins" !!!!
Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre questionFor Each Sh In Worksheets For i = 6 To k - 1 If Sh.Name = Sheets("Data (2)").Cells(i, 2).Value Then temp1 = Sheets("Data (2)").Cells(i, 3).Value temp2 = Sheets("Data (2)").Cells(i, 6).Value temp4 = temp1 & temp3 & temp2 temp4 = """" & temp4 & """" Sh.Range(temp4).Copy Sheets("Data").Cells(a, 3).PasteSpecial Paste:=xlPasteValues ' Recherche prochaine ligne vide (je suppose) Do While Not (IsEmpty(Cells(a, 2))) a = a + 1 Loop End If Next Next ShOn y voit plus clair.
If Sh.Name = Sheets("Data (2)").Cells(i, 2).Value Then Sh.Range(CStr(Sheets("Data (2)").Cells(i, 3).Value) & _ ":" & _ CStr(Sheets("Data (2)").Cells(i, 6).Value)).Copy Sheets("Data").Cells(a, 3).PasteSpecial Paste:=xlPasteValues ' Recherche prochaine ligne vide (je suppose) Do While Not (IsEmpty(Cells(a, 2))) a = a + 1 Loop End If