For each cell in plusieurs plages

Bonjour amis exceliens,

J'ai une petite question : j'ai un code vba de la sorte avec trois boucles "for" :

For Each cell In colonneA

TRIM_CR (cell)

Next cell

For Each cell In colonneB

TRIM_CR (cell)

Next cell

For Each cell In colonneC

TRIM_CR (cell)

Next cell

Est-il possible d'alléger ce code en une boucle for ?

Merci !

bonjour,

à tester

For Each cell In union( colonneA,colonneB,colonneC)
TRIM_CR (cell)
Next cell
Rechercher des sujets similaires à "each plages"