A voir également:
- Prblm d'optimisation d'un code vba HEL please
- Optimisation pc - Accueil - Utilitaires
- Code asci - Guide
- Code puk bloqué - Guide
- Code telephone oublié - Guide
- Code activation windows 10 - Guide
1 réponse
j'ai insérer des espces pour améliorer la lisibilité du code VBA
Sub Exercice2() Dim Zone As Range 'Zone à mettre en forme Set Zone = Range("a1").CurrentRegion With Zone .Interior.ColorIndex = 5 With .Borders(xlInsideHorizontal) .LineStyle = xlDash .Weight = xlMedium End With With .Borders(xlInsideVertical) .LineStyle = xlDash .Weight = xlMedium End With .Borders(xlEdgeBottom).LineStyle = xlContinuous .Borders(xlEdgeTop).LineStyle = xlContinuous .Borders(xlEdgeRight).LineStyle = xlContinuous .Borders(xlEdgeLeft).LineStyle = xlContinuous End With With [a1:a4].Font .Bold = True .Italic = True .Name = "comic sans ms" End With End Sub<code></code>