Bonjour le forum,
Comme indiqué dans le titre y a t-il à faire mieux?
C'est pour défusionner des cellules sur 3 colonnes (G H I) avec 3 couleurs différentes pour passer sur l'année suivante.
Merci pour vos retours
Cordialement
Voici la macro:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18 Sub DefusionnerLignesSimulation() With Range("G3:I4,G84:I84,G87:I87,G89:I89,G91:I91") .MergeCells = False 'False pour Défusionner .Interior.ColorIndex = 40 .HorizontalAlignment = xlCenterAcrossSelection With Range("G5:I5,G26:I26,G47:I47,G68:I68") .MergeCells = False .Interior.ColorIndex = 24 .HorizontalAlignment = xlCenterAcrossSelection With Range("G85:I85,G88:I88,G90:I90,G92:I92") .MergeCells = False .Interior.ColorIndex = 36 .HorizontalAlignment = xlCenterAcrossSelection End With End With End With End Sub






Répondre avec citation



Partager