Hello everyone. I am a novice when it comes to VBA but my problem is this:
I have a sheet which generates a calculated time in column J. This comes from a function of two times automatically generated from two other columns. What I'm trying to do is to generate an error message (or warning message) if the calculated time in column Jexceeds 30 minutes. I have written the following macro but it doesnt work. Can anyone help?
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Column("J").Value > 0.042361111 Then
MsgBox "Downtime needs recording"
End If
End Sub
I think there may be a problem with the time as I've entered it as a decimal but other than that I dont know how to fix it
Hope someone can help please.
Bookmarks