Professional Documents
Culture Documents
Excel Notification Email
Excel Notification Email
Dim ws As Worksheet
minStock = 10 'Replace 10 with the minimum stock level you want to use
If Intersect(Target, ws.Range("B:B")) Is Nothing Then Exit Sub 'Replace "B:B" with the column letter
for your stock levels
With OutMail
.Body = "The stock level for item " & Target.Offset(0, -1).Value & " has fallen below the
minimum level of " & minStock & "."
.Send
End With
End If
End Sub