Bonjour à tous,
J'aimerais savoir si c'est possible d'utiliser la fonction For i to ... avec une valeur d'une cellule à sélectionner.
J'ai essayé sans succès l'erreur 13 s'affiche alors.
J'ai également un problème avec ma formule : .Range("A" & iRowRack_R) = cell.Value, l'erreur 1004 s'affiche.
Ci-dessous mon code :
Merci pour votre aide !
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 With Worksheets("Réalisation_Audit") For Each cell In .Range("A1:A100") If cell.Value <> "" Then With Worksheets("Actions_en_cours") For i = 1 To Worksheets("Réalisation_Audit").Range("A1:A100").Value iRow_Rack_R = .Range("A" & .Rows.Count).End(xlUp).Row + 1 .Range("A" & iRowRack_R) = cell.Value Next i cell.Font.ColorIndex = 3 End With End If Next End With
Partager