Magic_Doctor
XLDnaute Barbatruc
Bonjour,
Dans une macro, à un moment donné, j'ai ceci :
Je me demandais si l'on ne puvait pas abréger tout ça. J'ai donc essayé :
Ça ne marche pas du tout.
Il y aurait-il un moyen pour contracter toutes ces sentences ?
Dans une macro, à un moment donné, j'ai ceci :
Code:
...
.Parent.[F6].HorizontalAlignment = xlCenter 'cellule jaune toujours centrée
.Parent.[C15].HorizontalAlignment = xlCenter
.Parent.[C18].HorizontalAlignment = xlCenter
.Parent.[I15].HorizontalAlignment = xlCenter
.Parent.[I18].HorizontalAlignment = xlCenter
...
Code:
.Parent.Union([F6], [C15], [C18], [I15], [I18]).HorizontalAlignment = xlCenter
Il y aurait-il un moyen pour contracter toutes ces sentences ?