no save
Assistance
Achat
News

Forum | programmation
[Excel ou VB?] MEFC modifiant autre cellule
Armojax, le ven. 18 août 2006 à 17:56:48
Copie ça dans le code de la feuille concernée (le code de Feuil1 par exemple) : Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Column <> 2 Then Exit Sub
Dim I As Long
I = Target.Row
Select Case UCase(Cells(I, 2).Value)
Case "HARICOT": Cells(I, 1).Interior.ColorIndex = 4
Case "TOMATE": Cells(I, 1).Interior.ColorIndex = 3
Case "RAISIN": Cells(I, 1).Interior.ColorIndex = 39
Case "ORANGE": Cells(I, 1).Interior.ColorIndex = 45
Case "CITRON": Cells(I, 1).Interior.ColorIndex = 6
Case Else: Cells(I, 1).Interior.ColorIndex = xlNone
End Select
End Sub
Précédentgreengrin
août 06
greengrin
août 06
Suivant
REPONSES
Armojax
août 06
greengrin
août 06
Armojax
août 06
greengrin
août 06
Version Web
Réalisé par RedShift
no save