VBA Help Programmation
mariek888
Messages postés
8
Statut
Membre
-
pijaku Messages postés 13513 Date d'inscription Statut Modérateur Dernière intervention -
pijaku Messages postés 13513 Date d'inscription Statut Modérateur Dernière intervention -
Bonjour,
Je suis nouvelle dans la programmation VBA, et j'aurai d'aide pour me corriger mon mini programme :
Sub test()
For i = 5 To 1000 Step 1
Dim a
Dim b
Dim c
a = Range("I" & i).Value
b = Range("J" & i).Value
c = Range("B2" & i).Value
If a <> "" And b <> "" Then
If a < c And b < c Then
Range("M" & i).Value = 1
End If
If b > c Then
Range("N" & i).Value = 0
End If
If a < c And b > c Then
Range("o" & i).Value = Range("L" & i).Value
End If
End If
Next i
End Sub
Merci à tous de votre aide :)
Je suis nouvelle dans la programmation VBA, et j'aurai d'aide pour me corriger mon mini programme :
Sub test()
For i = 5 To 1000 Step 1
Dim a
Dim b
Dim c
a = Range("I" & i).Value
b = Range("J" & i).Value
c = Range("B2" & i).Value
If a <> "" And b <> "" Then
If a < c And b < c Then
Range("M" & i).Value = 1
End If
If b > c Then
Range("N" & i).Value = 0
End If
If a < c And b > c Then
Range("o" & i).Value = Range("L" & i).Value
End If
End If
Next i
End Sub
Merci à tous de votre aide :)
A voir également:
- VBA Help Programmation
- Application de programmation - Guide
- Excel compter cellule couleur sans vba - Guide
- Incompatibilité de type vba ✓ - Forum VB / VBA
- Erreur 13 incompatibilité de type VBA excel ✓ - Forum Excel
- Find vba - Astuces et Solutions