Option Explicit
Private Sub CmdBtn_Facturé_Click()
Dim rng As Range, Rep As VbMsgBoxResult
Set rng = Range("A5:A" & Cells(Rows.Count, "A").End(xlUp).Row).Resize(, 365)
If Not Intersect(ActiveCell, rng) Is Nothing Then
If ActiveCell.Interior.Color = &H80FF& Then
Rep = MsgBox("Etes sur de vouloir la dépointer des factures", vbYesNo)
If Rep = vbYes Then ActiveCell.Interior.Color = xlNone
Else
ActiveCell.Interior.Color = &H80FF&
End If
End If
End Sub
Private Sub CmdBtn_Payé_Click()
Dim rng As Range, Rep As VbMsgBoxResult
Set rng = Range("A5:A" & Cells(Rows.Count, "A").End(xlUp).Row).Resize(, 365)
If Not Intersect(ActiveCell, rng) Is Nothing Then
If ActiveCell.Interior.Color = &H80FF& Then
Rep = MsgBox("Etes sur de vouloir la dépointer des payés", vbYesNo)
If Rep = vbYes Then ActiveCell.Interior.Color = xlNone
Else
ActiveCell.Interior.Color = &HC000&
End If
End If
End Sub