tropics123
Board Regular
- Joined
- May 11, 2016
- Messages
- 85
Hi, thank you in advance for you help! Here's what the VBA is trying to do but not successful Look for blank cells in columns D and J, if there are blank cells then highlight the header cell in the same column and if no blank then do nothing. This will let me know there are blank cells to look at rather than filter every time since the data will change daily. Thank you so much for your help!
Sub Blank()
If IsEmpty(Range("D").Value) Then
Range("D1").Select
With Selection.Interior
.Pattern = xlSolid
.PatternColorIndex = xlAutomatic
.Color = 49407
.TintAndShade = 0
.PatternTintAndShade = 0
Next
If IsEmpty(Range("J").Value) Then
Range("J1").Select
With Selection.Interior
.Pattern = xlSolid
.PatternColorIndex = xlAutomatic
.Color = 49407
.TintAndShade = 0
.PatternTintAndShade = 0
End If
End Sub
Sub Blank()
If IsEmpty(Range("D").Value) Then
Range("D1").Select
With Selection.Interior
.Pattern = xlSolid
.PatternColorIndex = xlAutomatic
.Color = 49407
.TintAndShade = 0
.PatternTintAndShade = 0
Next
If IsEmpty(Range("J").Value) Then
Range("J1").Select
With Selection.Interior
.Pattern = xlSolid
.PatternColorIndex = xlAutomatic
.Color = 49407
.TintAndShade = 0
.PatternTintAndShade = 0
End If
End Sub
Last edited: