The following code you gave me changes the words of a field for the contacts I select.
So I want this to do the following: Add the email address to the contact equal to the First Name.Last Name@BankName.com
So can we change this?
Sub AddCurrentLastStatusFieldsandDateFields_Marketing_E_mail_Sent_Reminder_Value()
Dim objApp As Application
Dim objNS As NameSpace
Dim objFolder As MAPIFolder
Dim objItem As Object
Set objApp = CreateObject("Outlook.Application")
Set objNS = objApp.GetNamespace("MAPI")
On Error Resume Next
If TypeName(objApp.ActiveWindow) = "Inspector" Then
Set objItem = objApp.ActiveInspector.currentItem
objItem.UserProperties("Last Status Date") = Now()
objItem.UserProperties("Last Status") = "Marketing E-mail Sent - Reminder Value"
objItem.UserProperties("Follow-Up?") = "Yes"
objItem.UserProperties("Date to Follow- Up") = DateAdd("m", 1, objItem.UserProperties("Last Status Date"))
objItem.UserProperties("Start Date") = objItem.UserProperties("Date to Follow- Up")
objItem.UserProperties("Next Step") = "E-mail To Stay in Touch"
objItem.Save
GoTo Leave
End If
Set objSelection = objApp.ActiveExplorer.Selection
For Each objItem In objSelection
objItem.UserProperties("Last Status Date") = Now()
objItem.UserProperties("Last Status") = "Marketing E-mail Sent - Reminder Value"
objItem.UserProperties("Follow-Up?") = "Yes"
objItem.UserProperties("Date to Follow- Up") = DateAdd("m", 1, objItem.UserProperties("Last Status Date"))
objItem.UserProperties("Start Date") = objItem.UserProperties("Date to Follow- Up")
objItem.UserProperties("Next Step") = "E-mail To Stay in Touch"
objItem.Save
Next
Leave:
Set objItem = Nothing
Set objFolder = Nothing
Set objNS = Nothing
Set objApp = Nothing
End Sub
So I want this to do the following: Add the email address to the contact equal to the First Name.Last Name@BankName.com
So can we change this?
Sub AddCurrentLastStatusFieldsandDateFields_Marketing_E_mail_Sent_Reminder_Value()
Dim objApp As Application
Dim objNS As NameSpace
Dim objFolder As MAPIFolder
Dim objItem As Object
Set objApp = CreateObject("Outlook.Application")
Set objNS = objApp.GetNamespace("MAPI")
On Error Resume Next
If TypeName(objApp.ActiveWindow) = "Inspector" Then
Set objItem = objApp.ActiveInspector.currentItem
objItem.UserProperties("Last Status Date") = Now()
objItem.UserProperties("Last Status") = "Marketing E-mail Sent - Reminder Value"
objItem.UserProperties("Follow-Up?") = "Yes"
objItem.UserProperties("Date to Follow- Up") = DateAdd("m", 1, objItem.UserProperties("Last Status Date"))
objItem.UserProperties("Start Date") = objItem.UserProperties("Date to Follow- Up")
objItem.UserProperties("Next Step") = "E-mail To Stay in Touch"
objItem.Save
GoTo Leave
End If
Set objSelection = objApp.ActiveExplorer.Selection
For Each objItem In objSelection
objItem.UserProperties("Last Status Date") = Now()
objItem.UserProperties("Last Status") = "Marketing E-mail Sent - Reminder Value"
objItem.UserProperties("Follow-Up?") = "Yes"
objItem.UserProperties("Date to Follow- Up") = DateAdd("m", 1, objItem.UserProperties("Last Status Date"))
objItem.UserProperties("Start Date") = objItem.UserProperties("Date to Follow- Up")
objItem.UserProperties("Next Step") = "E-mail To Stay in Touch"
objItem.Save
Next
Leave:
Set objItem = Nothing
Set objFolder = Nothing
Set objNS = Nothing
Set objApp = Nothing
End Sub