I have this code that brings up a comment box in column B (to type something that would show in column B) whenever I type something in column A. Now I need this in a domino effect up until column D.
This is the code:
Private Sub Worksheet_Change(ByVal Target As Range)
Dim myComment As String
'
If Target.Column = 1 And Target.Count = 1 Then
Application.EnableEvents = False
myComment = InputBox("Please enter data for column B, otherwise you entry will be deleted", "ENTER COMMENT")
If Len(myComment) > 0 Then
Target.Offset(0, 1) = myComment
Else
Target.ClearContents
End If
Application.EnableEvents = True
End If
End Sub
See below for sample. I need similar message when I input data in that box but asking for entry to be made for column C. Hope this makes sense.
[/URL][/IMG]
This is the code:
Private Sub Worksheet_Change(ByVal Target As Range)
Dim myComment As String
'
If Target.Column = 1 And Target.Count = 1 Then
Application.EnableEvents = False
myComment = InputBox("Please enter data for column B, otherwise you entry will be deleted", "ENTER COMMENT")
If Len(myComment) > 0 Then
Target.Offset(0, 1) = myComment
Else
Target.ClearContents
End If
Application.EnableEvents = True
End If
End Sub
See below for sample. I need similar message when I input data in that box but asking for entry to be made for column C. Hope this makes sense.