A voir également:
- Vba si a73 est selectionner dans macro then exit sub
- Telecharger macro convertir chiffre en lettre excel - Télécharger - Tableur
- Jitbit macro recorder - Télécharger - Confidentialité
- Télécharger macro convertir chiffre en lettre excel - Télécharger - Tableur
- Selectionner texte sur pdf - Guide
- Comment selectionner toutes les photos dans google photo - Guide
1 réponse
voici mon code pour le moment :
For i = 1 To 99
Range("A65536").Select
Selection.End(xlUp).Offset(1, 0).Select
Selection.EntireRow.Delete
Selection.End(xlUp).Offset(-67).Activate
If IsEmpty(ActiveCell) Then Exit Sub
If IsEmpty(ActiveCell.Offset(-1, 0)) Then Set TopCell = ActiveCell Else Set TopCell = ActiveCell.End(xlToLeft)
If IsEmpty(ActiveCell.Offset(1, 0)) Then Set BottomCell = ActiveCell Else Set BottomCell = ActiveCell.End(xlToRight).End(xlDown)
Range(TopCell, BottomCell).Select
Selection.ClearContents
Selection.EntireRow.Delete
Next
End Sub
For i = 1 To 99
Range("A65536").Select
Selection.End(xlUp).Offset(1, 0).Select
Selection.EntireRow.Delete
Selection.End(xlUp).Offset(-67).Activate
If IsEmpty(ActiveCell) Then Exit Sub
If IsEmpty(ActiveCell.Offset(-1, 0)) Then Set TopCell = ActiveCell Else Set TopCell = ActiveCell.End(xlToLeft)
If IsEmpty(ActiveCell.Offset(1, 0)) Then Set BottomCell = ActiveCell Else Set BottomCell = ActiveCell.End(xlToRight).End(xlDown)
Range(TopCell, BottomCell).Select
Selection.ClearContents
Selection.EntireRow.Delete
Next
End Sub