Turtleman10
Technical User
I am running outlook 2010
This is the chunk of code that has the message box in it If I select no it ends the proram but the E-mail still goes out. I need to cancel the E-mail all together. Anyone have any Idea what I did wrong?
Code:
If strSubject = "KECCERT" Then
Prompt$ = "Do you want to send this Cert to Kohler?"
If MsgBox(Prompt$, vbYesNo + vbQuestion + vbMsgBoxSetForeground, "Check for Attachment") = vbNo Then End
strPartN = InputBox("Part Number", "Please insert Part number")
strShipDT = InputBox("Ship Date", "Please insert Ship date")
strPO = InputBox("P.O", "Please insert P.O number")
Set Item = Outlook.Application.ActiveInspector.CurrentItem
Item.Subject = "PN_" + strPartN + "_SD_" + strShipDT + "_PO_" + strPO
strSubjectA = strA + strShipDT + strPartN + strRev
End If