Private Sub ThisWorkbook_Open()
If Day(Now) = 1 Then
If Worksheetfunction.Networkdays(Now, Now) = 1 Then
MsgBox "my text"
End If
End If
End Sub
Private Sub ThisWorkbook_Open()
If Worksheets("Sheet1").Range("A1").Value = "" Then
Worksheets("Sheet1").Range("A1").Value = Now
If Month(Worksheets("Sheet1").Range("A1").Value) < Month(Now) Then
MsgBox "my text"
Worksheets("Sheet1").Range("A1").Value = Now
End If
End Sub
If Worksheets("Sheet1").Range("ARCD").Value = 1 Then
Exit Sub 'exiting the whole procedure
End If