Advertisement
Guest User

Untitled

a guest
Jun 26th, 2019
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.29 KB | None | 0 0
  1. Private Sub Workbook_BeforeClose(Cancel As Boolean)
  2.  
  3.  
  4.  
  5.  
  6. If Range("CA1").Value > 0 Then
  7.  
  8. MsgBox Range("CA1").Value & " - ITEM(S) NEED LIST PRICE CORRECTION. There are " & Range("CA1").Value & " item(s) that presently have DEALER COST > LIST PRICE. Please fix pricing for these item(s) as indicated in Column AA."
  9.  
  10. Else
  11.  
  12. If Range("BO1").Value > 0 Then
  13.  
  14. MsgBox Range("BO1").Value & " - ITEM(S) - PRICE JUSTIFICATION MISSING. There are " & Range("BO1").Value & " item(s) that have a 0% price change to Dealer Cost or a negative price change. These items are missing PLM price justification in the comments field. Please add your comments to Column T."
  15.  
  16. Else
  17.  
  18. If Range("BQ1").Value > 0 Then
  19.  
  20. MsgBox Range("BQ1").Value & "- ITEM(S) - NEGATIVE GROSS MARGIN IN DEALER COST. There are " & Range("BQ1").Value & " item(s) that have negative GM and are missing price confirmation. Please confirm price by selecting YES in Column S."
  21. Else
  22.  
  23.  
  24. If Range("BS1").Value > 0 Then
  25.  
  26. MsgBox Range("BS1").Value & " - ITEM(S) WHOSE INCREASE TO DEALER COST IS GREATER THAN 5 PERCENT. There are " & Range("BS1").Value & " item(s) that have a price increase to Dealer Cost greater than 5% and are missing price confirmation. Please confirm price by selecting YES in Column S."
  27.  
  28. Else
  29.  
  30.  
  31.  
  32. End If
  33. End If
  34. End If
  35. End If
  36.  
  37. End Sub
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement