Hi guys,
I've just started working on VBA this week and I was writing a small piece of code. I am just wondering if there is a way to simplify the following:
If ActiveCell.Value < 0 Then
ActiveCell.Interior.ColorIndex = 3
ActiveCell.Font.Bold = True
ActiveCell.Offset(0,1).Value = "Incorrect"
ActiveCell.Offset(0,1).Font.Color = vbRed
End If
Thanks in advance for any help
I've just started working on VBA this week and I was writing a small piece of code. I am just wondering if there is a way to simplify the following:
If ActiveCell.Value < 0 Then
ActiveCell.Interior.ColorIndex = 3
ActiveCell.Font.Bold = True
ActiveCell.Offset(0,1).Value = "Incorrect"
ActiveCell.Offset(0,1).Font.Color = vbRed
End If
Thanks in advance for any help