kiwikiki718
Board Regular
- Joined
- Apr 7, 2017
- Messages
- 80
- Office Version
- 365
- Platform
- Windows
I have a cell with conditional formatting to turn red when a certain condition is met. is there a VBA code that will display a message box stating duplicate based on a cell color? so what I need is when a cell turns red, a message box to appear showing duplicate.
here is the code I have but it does not seem to work
Sub Duplicate_Class() 'Duplicate Check'
Dim ws As Worksheet
Set ws = Sheets("Request")
If ws.Range("C8").Interior.Color = RGB(255, 0, 0) Then
MsgBox "Duplicate class!"
End If
End Sub
here is the code I have but it does not seem to work
Sub Duplicate_Class() 'Duplicate Check'
Dim ws As Worksheet
Set ws = Sheets("Request")
If ws.Range("C8").Interior.Color = RGB(255, 0, 0) Then
MsgBox "Duplicate class!"
End If
End Sub