AwesomeSteph
Board Regular
- Joined
- Aug 18, 2017
- Messages
- 80
I am struggling with VBA to only display a message box when one cell is altered. What I have works but then if any other cell changes the msgbox continues to prompt the user. please help, this is tool I built for many users and I only want the msgbox to appear when B12 on sheet 1 has anything in it not when any other cell is touched multiple users will be going into the workbooks and I only want the initial person filling it out to be prompted.
Code:
Private Sub Worksheet_Change(ByVal Target As Range)
Application.ScreenUpdating = False
Dim MsgTitle, MsgPrompt As String, Ret As Integer
MsgPrompt = "Is this either a New Task or a Technical Change?"
MsgTitle = "Possible Review Required"
If Sheets(1).[B12].Value <> "" Then
Ret = MsgBox(MsgPrompt, vbYesNo, MsgTitle)
End If
If Ret = vbNo Then
Sheets(8).Activate
MsgBox "Check (Review Not Required) Boxes on lines 1 and 2 on xxx Form"
End If
If Ret = vbYes Then
MsgBox "Ensure Form is included with deliverable"
End If
Application.ScreenUpdating = True
End Sub