XL 2016 delete rows in range

Boostez vos compétences Excel avec notre communauté !

Rejoignez Excel Downloads, le rendez-vous des passionnés où l'entraide fait la force. Apprenez, échangez, progressez – et tout ça gratuitement ! 👉 Inscrivez-vous maintenant !

omar88

XLDnaute Nouveau
Hello
i hope your doing well please i'm in need of your help to delete some rows in a range with vba for example:

Delete row 2 from F to AZY

delete row 6 from F to azy
....
...
...
 
Hello and welcome

Note that for any help, it is better to join an excel file to explain and show what you need.

anyway:
i guess that F and AZY are the columns you want to delete in row 2 or 6

many choices
rows(2).delete==> the whole row will be deleted ==>previous row 3 become 2
range("F2:AZY2").clearcontents==> clear the content (not the formatting) range "F2:AZY2" without deleting the row:=> you will have an empty range
range("F2:AZY2").clear===> clear content and formatting

range("F2:AZY2").delete ==> delete the range==> makes a shift between rows..
 
- Navigue sans publicité
- Accède à Cléa, notre assistante IA experte Excel... et pas que...
- Profite de fonctionnalités exclusives
Ton soutien permet à Excel Downloads de rester 100% gratuit et de continuer à rassembler les passionnés d'Excel.
Je deviens Supporter XLD

Discussions similaires

Réponses
5
Affichages
254
Réponses
4
Affichages
194
Réponses
12
Affichages
552
  • Question Question
Microsoft 365 Export données
Réponses
4
Affichages
652
Retour