Hello all,
I’m having a hard time coming up with a specific line of code in my update macro.
I want an IF statement that is true when the cell has no fill, but false if it has any color fill.
This is what I have so far:
If selection.interior.pattern = xlBlank Then
ActiveSheet.Paste
Sheets("ENTRY").Select
Range("B6:B8").Select
Application.CutCopyMode = False
Selection.ClearContents
Range("B6").Select
Else
Sheets("ENTRY").Select
Application.CutCopyMode = False
Range("B6").Select
MsgBox ("Error: Invalid date. Either Holiday or Weekend.")
End If
Using the current formula, the IF statement is always true even when there is a colored fill in the cell.
BTW the fill is based on conditional formatting, don't know if that matters or not.
Any help would be greatly appreciated.
-Oli
Bookmarks