Yldie
XLDnaute Junior
Bonsoir à tous,
J'ai une macro avec multi mise en forme conditionnelle, or je ne sais pas comment insérer un code du type font etc........
voici ma macro, ex : ma lettre P en blanc
Sub contionnel()
ActiveSheet.Unprotect ("password")
Application.ScreenUpdating = False
For Each cellule In [B5:BN204]
cellule.Select
ActiveCell.Interior.ColorIndex = xlNone
With cellule
Select Case .Value
Case Is = ""
ActiveCell.Interior.ColorIndex = 0
Case Is = "P"
ActiveCell.Interior.ColorIndex = 27
Case Is = "R"
ActiveCell.Interior.ColorIndex = 4
Case Is = "E"
ActiveCell.Interior.ColorIndex = 3
End Select
End With
Next cellule
Application.ScreenUpdating = True
Range("a1").Select
ActiveSheet.Protect ("password")
End Sub
J'ai une macro avec multi mise en forme conditionnelle, or je ne sais pas comment insérer un code du type font etc........
voici ma macro, ex : ma lettre P en blanc
Sub contionnel()
ActiveSheet.Unprotect ("password")
Application.ScreenUpdating = False
For Each cellule In [B5:BN204]
cellule.Select
ActiveCell.Interior.ColorIndex = xlNone
With cellule
Select Case .Value
Case Is = ""
ActiveCell.Interior.ColorIndex = 0
Case Is = "P"
ActiveCell.Interior.ColorIndex = 27
Case Is = "R"
ActiveCell.Interior.ColorIndex = 4
Case Is = "E"
ActiveCell.Interior.ColorIndex = 3
End Select
End With
Next cellule
Application.ScreenUpdating = True
Range("a1").Select
ActiveSheet.Protect ("password")
End Sub