willow1985
Well-known Member
- Joined
- Jul 24, 2019
- Messages
- 888
- Office Version
- 365
- Platform
- Windows
The below code works with the exception of the line:
If Range("Z1").Value = "1" Then
MsgBox ("AUDIT LIST UPDATE REQUIRED")
I want the code to check cell Z1 (which is a formula) when the workbook is opened and display the message box if the value is 1, however the msg box only comes up if I refresh cell Z1.
Any suggestions?
If Range("Z1").Value = "1" Then
MsgBox ("AUDIT LIST UPDATE REQUIRED")
I want the code to check cell Z1 (which is a formula) when the workbook is opened and display the message box if the value is 1, however the msg box only comes up if I refresh cell Z1.
Any suggestions?
VBA Code:
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.CountLarge > 1 Then Exit Sub
If Not Intersect(Target, Range("D:D")) Is Nothing Then
If Target <> "" Then Call Notify
End If
If Range("Z1").Value = "1" Then
MsgBox ("AUDIT LIST UPDATE REQUIRED")
End If
End Sub