Hello all,
I have a problem with my VBA, maybe you can help me.
Everything is working fine, but even if XXX!D13 =0, i still recieve an empty message with "ok" button. How can i change the vba, so that in case XXX!D13 is zero, not to have any message.
This is my VBA:
I have a problem with my VBA, maybe you can help me.
Everything is working fine, but even if XXX!D13 =0, i still recieve an empty message with "ok" button. How can i change the vba, so that in case XXX!D13 is zero, not to have any message.
This is my VBA:
Code:
Dim msg AsString
If Worksheets("XXX").Range("D13")>0Then
msg ="ATENTION!"& vbCrLf &"OLD = "& Worksheets("XXX").Range("D13")&" PCS !"
EndIf
If Worksheets("XXX").Range("E13")>0Then
msg = msg & vbCrLf &"ATENTION!"& vbCrLf &"REQUEST = "& Worksheets("XXX").Range("E13")&" PCS !"
EndIf
MsgBox msg