Hi.
This is such a simple question that I just can't find an answer for that works. Very simply, when a certain cell is the row is filled in, the next cell populated with the Now() function. What I'm trying to do is just then select the active row from the cell that's been filled in with the time & date to the first cell in the row and change the colour of the row. I can get it to work with the Entire row function, but I don't want the entire row coloured, just the range I'm using.
I know there's a simple answer, I just can't get it to work.
this is what I've done:
Public Sub SkillReset() 'adds date & time when a row is reset
Dim reset As Range
Set reset = Range("I3:I10")
For Each cell In reset
If cell.Value <> "" Then
cell.Offset(0, 1).Value = Now()
Range(ActiveCell, ActiveCell.End(xlLeft)).Select 'this is the code that bugs out when I try to add the colour change
ElseIf cell.Value = "" Then
cell.Offset(0, 1).Value = ""
End If
Next
End Sub
This is such a simple question that I just can't find an answer for that works. Very simply, when a certain cell is the row is filled in, the next cell populated with the Now() function. What I'm trying to do is just then select the active row from the cell that's been filled in with the time & date to the first cell in the row and change the colour of the row. I can get it to work with the Entire row function, but I don't want the entire row coloured, just the range I'm using.
I know there's a simple answer, I just can't get it to work.
this is what I've done:
Public Sub SkillReset() 'adds date & time when a row is reset
Dim reset As Range
Set reset = Range("I3:I10")
For Each cell In reset
If cell.Value <> "" Then
cell.Offset(0, 1).Value = Now()
Range(ActiveCell, ActiveCell.End(xlLeft)).Select 'this is the code that bugs out when I try to add the colour change
ElseIf cell.Value = "" Then
cell.Offset(0, 1).Value = ""
End If
Next
End Sub
Last edited: