Claire Jackson
Board Regular
- Joined
- Jun 30, 2020
- Messages
- 79
- Office Version
- 2016
- Platform
- Windows
Hi,
I need a message box to pop up when I change a cell based on another cell in the worksheet. Basically if I change B5 and if B6 returns "phase" contained within the text (via a lookup) then I need a message box to popup. I've tried allsorts but it's not working. Any ideas please?
Private Sub Worksheet_Change(ByVal Target As Range)
If Not Intersect(Target, Range("B5")) Is Nothing Then
If Worksheets("WIP Sheet").Range("B6").Value = "*phase*" Then
MsgBox ("Please fill the next column!")
End If
End Sub
I need a message box to pop up when I change a cell based on another cell in the worksheet. Basically if I change B5 and if B6 returns "phase" contained within the text (via a lookup) then I need a message box to popup. I've tried allsorts but it's not working. Any ideas please?
Private Sub Worksheet_Change(ByVal Target As Range)
If Not Intersect(Target, Range("B5")) Is Nothing Then
If Worksheets("WIP Sheet").Range("B6").Value = "*phase*" Then
MsgBox ("Please fill the next column!")
End If
End Sub