Salut tout,tous,forum
j'ai un probleme dans ce code
Dim dl As Integer, x As Integer
With Sheets("feuil1")
dl = .Range("b" & .Rows.Count).End(xlUp).Row
For x = 4 To dl
If Left(Range("b" & x), 1) = "1" Then
.Range("k" & x) = .Range("j" & x) * 2
Else
.Range("k" & x) = .Range("j" & x) * 3
End If
Next x
End With
End Sub
j'explique
ce code fonctionne tres bien dans la feuille 1
je veux quil fonctionne aussi dans la feuille2;feuille3
mais je suis nul
aidez moi SVP
j'ai un probleme dans ce code
Dim dl As Integer, x As Integer
With Sheets("feuil1")
dl = .Range("b" & .Rows.Count).End(xlUp).Row
For x = 4 To dl
If Left(Range("b" & x), 1) = "1" Then
.Range("k" & x) = .Range("j" & x) * 2
Else
.Range("k" & x) = .Range("j" & x) * 3
End If
Next x
End With
End Sub
j'explique
ce code fonctionne tres bien dans la feuille 1
je veux quil fonctionne aussi dans la feuille2;feuille3
mais je suis nul
aidez moi SVP