Problème Else sans IF
Résolu
Elouna
-
Elouna -
Elouna -
Bonjour,
Pouvez-vous svp me dire ce qui ne va pas avec cette macro pourtant simple?
Merci d'avance
Sub Macro
Range("R10").Activate
While ActiveCell.Value <> Empty
If ActiveCell.Value <> "2042" Then ActiveCell.EntireRow.Delete Shift:=xlUp
Else: ActiveCell.Offset(1, 0).Activate
Wend
End Sub
Pouvez-vous svp me dire ce qui ne va pas avec cette macro pourtant simple?
Merci d'avance
Sub Macro
Range("R10").Activate
While ActiveCell.Value <> Empty
If ActiveCell.Value <> "2042" Then ActiveCell.EntireRow.Delete Shift:=xlUp
Else: ActiveCell.Offset(1, 0).Activate
Wend
End Sub
A voir également:
- Problème Else sans IF
- The realtek network controller was not found. if deep sleep mode is enabled please plug the cable ✓ - <a href="https://forums.commentcamarche.net/forum/pilotes-drivers-227">Forum Pilotes (drivers)</a>
- If exist ✓ - <a href="https://forums.commentcamarche.net/forum/autoit-batch-318">Forum Autoit / batch</a>
- Problème If Else - <a href="https://forums.commentcamarche.net/forum/java-265">Forum Java</a>
- {Batch} IF NOT EXIST <mon folder> ne fonctionne pas ✓ - <a href="https://forums.commentcamarche.net/forum/autoit-batch-318">Forum Autoit / batch</a>
- Formule if excel - Guide