Livin404
Well-known Member
- Joined
- Jan 7, 2019
- Messages
- 774
- Office Version
- 365
- 2019
- Platform
- Windows
I have part of a macro and I think I have a couple of concepts correct; however, I'm trying to pieces them with components I'm missing. If starting on K5 and going down, for all cells that have any value. In this case if the adjacent cells in Column L are blank then the cell will be filled in with yellow. For example Cell K8 has "1105" and L8 is blank it will be colored. If it is not blank then nothing happens.
I know I'll need an "else" statement, and I don't know where I'll put my If blank statement( "">
I think I have a couple things I can use in the macro below.
Thank you so much for your patience.
I know I'll need an "else" statement, and I don't know where I'll put my If blank statement( "">
I think I have a couple things I can use in the macro below.
Thank you so much for your patience.
VBA Code:
Sub Offset_interior()
Dim Kl As Range
For Each Kl In ActiveSheet.Range("L5:L" & ActiveSheet.Cells(Rows.Count, 11).End(xlUp).Row)
If K1.Value Like "*" Then K1.Offset(, 1).Interior.Color = RGB(255, 255, 0)
Next K1
End Sub