I need a message box to be generated when opening a workbook and #value! appears in Cell E4 (have a hyperlink to a workbook in E4)
I have tried to write code to do this, but the message box does not appear
it would be appreciated if someone could kindly amend my code
I have tried to write code to do this, but the message box does not appear
Code:
Private Sub Workbook_Open()
Dim ws As Worksheet
Set ws = ThisWorkbook.Sheets("Sheet1") ' Modify the sheet name as per your requirement
If ws.Range("E4").Value = "#VALUE!" Then
MsgBox "Double Click on Hyperlink to open Managers Comm File", vbInformation, "Open Managers Comm File"
End If
End Sub
it would be appreciated if someone could kindly amend my code