J
jp
Guest
Bonjour , apres qq heures sur vb ... je lache ...
Voila je voudrais :
1 detecter la couleurs de la case ... et appliquer une couleur de fonte ...
mais sa marche pas mon truc :
Private Sub Worksheet_Change(ByVal Target As Range)
Dim Maplage As Range
Dim Cell As Range
Dim CI As Byte
Application.ScreenUpdating = False
Set Maplage = Sheets("Fabrication").Range("F1:F60")
If Not Intersect(Target, Maplage) Is Nothing Then
For Each Cell In Maplage
Select Case Cell
Case Cell.Interior.ColorIndex = 5: CI = 8
End Select
With Cell.Font
.ColorIndex = CI
End With
Next Cell
End If
Application.ScreenUpdating = True
End Sub
si qq pouvait eclairer ma lanterne ;-)) .. merci d'avance.
Voila je voudrais :
1 detecter la couleurs de la case ... et appliquer une couleur de fonte ...
mais sa marche pas mon truc :
Private Sub Worksheet_Change(ByVal Target As Range)
Dim Maplage As Range
Dim Cell As Range
Dim CI As Byte
Application.ScreenUpdating = False
Set Maplage = Sheets("Fabrication").Range("F1:F60")
If Not Intersect(Target, Maplage) Is Nothing Then
For Each Cell In Maplage
Select Case Cell
Case Cell.Interior.ColorIndex = 5: CI = 8
End Select
With Cell.Font
.ColorIndex = CI
End With
Next Cell
End If
Application.ScreenUpdating = True
End Sub
si qq pouvait eclairer ma lanterne ;-)) .. merci d'avance.