I have setup the following code in the workbook module
If D25 on Sheet "Debtors" is greater than 0, the message box to pop up with message "Item has been processed" and if D25 is zero or blank then message to appear "Items not yet processed"
Where D25 is > 0 then message show "Item Processed" as well as "Item not yet processed"
message box only to show "Item not yet processed" if D25 is zero or blank
It would be appreciated if someone could kindly amend my code
If D25 on Sheet "Debtors" is greater than 0, the message box to pop up with message "Item has been processed" and if D25 is zero or blank then message to appear "Items not yet processed"
Where D25 is > 0 then message show "Item Processed" as well as "Item not yet processed"
message box only to show "Item not yet processed" if D25 is zero or blank
It would be appreciated if someone could kindly amend my code
Code:
Private Sub Workbook_Open()
With Sheets("Sales")
If Range("D25") > "0" Then
MsgBox "Item processed"
Else
End If
MsgBox "Item not yet processed"
End With
End Sub