Hi,
I have Windows 7 and using Excel 2010.
I am using this code to prompt for additional info when an entry is made in the file. Currently it is asking for an entry for the next box. I need it to ask for an entry for the next 3 boxes too but cannot figure out what to add.
I have Windows 7 and using Excel 2010.
I am using this code to prompt for additional info when an entry is made in the file. Currently it is asking for an entry for the next box. I need it to ask for an entry for the next 3 boxes too but cannot figure out what to add.
Code:
Option Explicit
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 Room Number or n/a, 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