Here is the code passed on what you gave me in the past, that converts the words of the WebPage to the LinkedIn Webpage, and cleans out the Webpage...
How can we change this for converting the Email1 Address to the Email2 Address, and cleans out the Emal1 Address...I tried it in different ways but cannot do it...so please let me know as this is important as well.
Sub ConvertWebPagetoLinkedInWebPage()
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("LinkedIn Webpage") = objItem.UserProperties("Web Page")
objItem.UserProperties("Web Page") = ""
objItem.Save
GoTo Leave
End If
Set objSelection = objApp.ActiveExplorer.Selection
For Each objItem In objSelection
objItem.UserProperties("LinkedIn Webpage") = objItem.UserProperties("Web Page")
objItem.UserProperties("Web Page") = ""
objItem.Save
Next
Leave:
Set objItem = Nothing
Set objFolder = Nothing
Set objNS = Nothing
Set objApp = Nothing
End Sub
How can we change this for converting the Email1 Address to the Email2 Address, and cleans out the Emal1 Address...I tried it in different ways but cannot do it...so please let me know as this is important as well.
Sub ConvertWebPagetoLinkedInWebPage()
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("LinkedIn Webpage") = objItem.UserProperties("Web Page")
objItem.UserProperties("Web Page") = ""
objItem.Save
GoTo Leave
End If
Set objSelection = objApp.ActiveExplorer.Selection
For Each objItem In objSelection
objItem.UserProperties("LinkedIn Webpage") = objItem.UserProperties("Web Page")
objItem.UserProperties("Web Page") = ""
objItem.Save
Next
Leave:
Set objItem = Nothing
Set objFolder = Nothing
Set objNS = Nothing
Set objApp = Nothing
End Sub