With .... End With

  • Initiateur de la discussion Justine
  • Date de début
J

Justine

Guest
Bonjour à tous,
Comment rendre ce code moins long? Je suppose qu'on utilise With et End With, mais je ne sais comment cela fonctionne... Pouvez vous m'aider? Merci beaucoup

Range('a1').Activate
With ActiveCell
With .Font
.Bold = True
.Size = 10
End With
End With

Range('b1').Activate
With ActiveCell
With .Font
.Bold = True
.Size = 10
End With
End With
Range('c1').Activate
With ActiveCell
With .Font
.Bold = True
.Size = 10
End With
End With
Range('d1').Activate
With ActiveCell
With .Font
.Bold = True
.Size = 10
End With
End With
 

Statistiques des forums

Discussions
313 043
Messages
2 094 723
Membres
106 075
dernier inscrit
ronagaya