bonjour,
Jai un probleme de macro
J'ai cette macro
Sub matiere()
'
n = 1
For Each c In Range("g2:r2")
If c.Value > " " Then
Range("f" & n).Value = c.Value
n = n + 1
End If
Next
End Sub
Elle fonctionne très bien
Ce que je voudrais c'est que quand je positionne mon curseur dans la cellule A2 cette macro fonctionne tel quel
mais quand je me positionne en A3 la ligne de ma macro deviendrait"For Each c In Range("g3:r3")"
quand je me positionne en A4 la ligne deviendrais For Each c In Range("g4:r4")
toujours comme cela jusqu'en A100
Est-ce possible
Merci!!!
Jai un probleme de macro
J'ai cette macro
Sub matiere()
'
n = 1
For Each c In Range("g2:r2")
If c.Value > " " Then
Range("f" & n).Value = c.Value
n = n + 1
End If
Next
End Sub
Elle fonctionne très bien
Ce que je voudrais c'est que quand je positionne mon curseur dans la cellule A2 cette macro fonctionne tel quel
mais quand je me positionne en A3 la ligne de ma macro deviendrait"For Each c In Range("g3:r3")"
quand je me positionne en A4 la ligne deviendrais For Each c In Range("g4:r4")
toujours comme cela jusqu'en A100
Est-ce possible
Merci!!!