Bonjour,
J’utilise une macro trouvée sur le site Microsoft pour la surbrillance des colonnes et lignes la voici
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If IsEmpty(Target) Or Target.Cells.Count > 1 Then Exit Sub
Application.ScreenUpdating = False
With ActiveCell
' Highlight the row and column that contain the active cell, within the current region
Range(Cells(.Row, .CurrentRegion.Column), Cells(.Row, .CurrentRegion.Columns.Count + .CurrentRegion.Column - 1)).Interior.ColorIndex = 43
Range(Cells(.CurrentRegion.Row, .Column), Cells(.CurrentRegion.Rows.Count + .CurrentRegion.Row - 1, .Column)).Interior.ColorIndex = 43
End With
Application.ScreenUpdating = True
End Sub
Elle fonctionne très bien, quand je clique sur une nouvelle cellule, je souhaite désélectionner la sélection précèdent pour avoir toujours qu'une ligne ou colonne de sélectionnées
Merci de votre aide
Cordialement