NXProf
Mechanical
- Nov 28, 2012
- 45
Hello,
I have a really simple question. I'm attempting to create a reoccurring e-mail message in Outlook, in which I've located the following link, which works well:
Sub Item_PropertyChange(ByVal Name)
Select Case Name
Case "Status"
if Item.Status = 2 then '2 = Completed
Set NewItem = Application.CreateItem(0)
NewItem.To = "myemailaddress@myisp.com"
NewItem.Recipients.ResolveAll
NewItem.Subject = "This is the message subject text"
NewItem.Body = "This is text that will appear in the body of the message."
NewItem.Display
End IF
End Select
End Sub
Thank you for your response(s) ahead of time!
NX Prof
I have a really simple question. I'm attempting to create a reoccurring e-mail message in Outlook, in which I've located the following link, which works well:
https://support.microsoft.com/en-us/help/239087/how-to-create-a-recurring-e-mail-message-in-outlook.
But my question is "How can I make multiple lines within the Body of the reoccurring e-mail on the below line 'NewItem.Body = "This is text that will appear in the body of the message."'?" The VB code that is provided in the above link is as follows:Sub Item_PropertyChange(ByVal Name)
Select Case Name
Case "Status"
if Item.Status = 2 then '2 = Completed
Set NewItem = Application.CreateItem(0)
NewItem.To = "myemailaddress@myisp.com"
NewItem.Recipients.ResolveAll
NewItem.Subject = "This is the message subject text"
NewItem.Body = "This is text that will appear in the body of the message."
NewItem.Display
End IF
End Select
End Sub
Thank you for your response(s) ahead of time!
NX Prof