E
Evelynetfrancois
Guest
bonsoir
je cherche desesperement a limite l'action de lma macro ,de la ligne n°2 a la 320
mais egalement de la column 2 a la colonne 20
auriez vous la soluce
bonne soirée et merci d'avance
EetF
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Dim L As Integer
Application.ScreenUpdating = False
For L = 2 To 320
If Cells(L, 2).Row = ActiveCell.Row Then
Range(Cells(L, 1), Cells(L, 1)).Font.ColorIndex = 3
Else
Range(Cells(L, 1), Cells(L, 1)).Font.ColorIndex = 5
End If
Next L
Application.ScreenUpdating = True
End Sub
je cherche desesperement a limite l'action de lma macro ,de la ligne n°2 a la 320
mais egalement de la column 2 a la colonne 20
auriez vous la soluce
bonne soirée et merci d'avance
EetF
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Dim L As Integer
Application.ScreenUpdating = False
For L = 2 To 320
If Cells(L, 2).Row = ActiveCell.Row Then
Range(Cells(L, 1), Cells(L, 1)).Font.ColorIndex = 3
Else
Range(Cells(L, 1), Cells(L, 1)).Font.ColorIndex = 5
End If
Next L
Application.ScreenUpdating = True
End Sub