Copy Outlook contact field value to another field

Status
Not open for further replies.

CrazyDD

Member
Outlook version
Outlook 2016 32 bit
Email Account
Office 365 Exchange
I didn't see an option for Office 365 Pro Plus in your list of Outlook version, so chose Outlook 2016 32 bit for lack of knowledge on which would be closest fit.

I erroneously placed data in the Computer Network Name which won't export with the CodeTwo Outlook Export tool or the native Import/Export tool. The value will appear in a List View but onerous to copy and paste one by one. I tried the code below, but didn't work for me. Would appreciate any help you can give.

Sub CopyComputerNetworkNameToCallback()

Dim objNS As Outlook.NameSpace
Dim objItems As Items
Dim objItem As Object

Set objNS = Application.Session
Set objItems = objNS.GetDefaultFolder(olFolderContacts).Items

For Each objItem In objItems
' make sure you have a Contact item
If objItem.Class = olContact Then
' copy data
objItem.Callback = objItem.ComputerNetworkName
objItem.Save
End If
Next

Set objItems = Nothing
Set objItem = Nothing
Set objNS = Nothing

End Sub

Thank you for you assistance.

Cheers,

DD
 
Never mind, I found my error. Callback should be CallbackTelephoneNumber . Darn it! Apologies for wasting forum space

Cheers,

DD
 
Status
Not open for further replies.
Similar threads
Thread starter Title Forum Replies Date
O Outlook 365 - How to create / copy a new contact from an existing one? Using Outlook 5
B Outlook Business Contact Manager with SQL to Excel, User Defined Fields in BCM don't sync in SQL. Can I use VBA code to copy 1 field to another? BCM (Business Contact Manager) 0
M "Attachment Detacher for Outlook" add in, does it update the server copy of the email? Using Outlook 1
C Outlook 365 Copy/Save Emails in Folder Outside Outlook to Show Date Sender Recipient Subject in Header Using Outlook 0
J Copy to calendar function no longer working in outlook 365 Using Outlook 5
N Outlook rules don't create a copy for bcc'ed emails Using Outlook 3
geofferyh Outlook 2010 How to Copy Outlook Attachment to a Specific Folder? Outlook VBA and Custom Forms 3
R Copy Outlook Public Folders to a File Server Shared Folder Using Outlook 0
K Outlook Rules: Move a Copy Using Outlook 4
E Copy e-mail body from outlook and insert into excel Outlook VBA and Custom Forms 3
K ind specific Subject line from outlook and copy the content of the email body to exce Outlook VBA and Custom Forms 0
J Copy or Export Outlook Mail to Excel Outlook VBA and Custom Forms 6
Carrie Dickey Outlook 2016 created two calendars titled Calendar1 - appear to be a copy Using Outlook 2
P How to copy and append data from Outlook 2016 message into Excel 2016 workbook Using Outlook 0
Diane Poremsky Use a macro to copy data in Outlook email to Excel workbook Using Outlook 0
A Outlook: copy & paste Outlook VBA and Custom Forms 9
Diane Poremsky Use a macro to copy data in Outlook email to Excel workbook Using Outlook 0
joflo copy contents from outlook to excell - please help. Using Outlook 4
G outlook 13 copy & paste without losing formatting Using Outlook 1
A Macro to Copy Data from Outlook to Excel Spreadsheet Using Outlook 2
B Outlook being closed causing problems during copy to Excel Outlook VBA and Custom Forms 6
Mary B Outlook 2013: Rule for copying new email to folder & marking that copy as read Using Outlook 1
R Copy/paste mailing address Outlook 2013 Using Outlook 6
Vijay Kumar Copy tables from outlook to excel Using Outlook 12
L Outlook 2007 Copy Email Address in To Field Using Outlook 11
Aussie Looking for Outlook macro to Copy Recipient Names into Email Body Outlook VBA and Custom Forms 3
P Copy email address from outlook 2013/2010 Using Outlook 1
R How to copy outlook 2010 shared calendar appointment or meeting to personal calendar by vba? Outlook VBA and Custom Forms 1
J Cannot copy outlook form to mailbox of exchange 2k13 user Exchange Server Administration 1
L Outlook 2007 Copy Text Field Using Outlook 8
J Copy emails from a dead Outlook 2010 account Using Outlook 1
Z Copy Outlook 2007 "AutoComplete Contacts” to Outlook 2010 Using Outlook 7
N Restoring Outlook Calendar after iCloud copy Using Outlook 1
W Copy individual file folders in Outlook 2010 PST to a My Documents folder Using Outlook 4
C outlook 2003 always not remove temp copy of opened attachments in temporary fo Using Outlook 4
D outlook to save copy of hotmail? Using Outlook 3
N error when copying outlook data "can not copy: the path too deep" Using Outlook 6
P Outlook looking for Copy of Outlook.pst Outlook VBA and Custom Forms 1
C Copy from one Profile to another Using Outlook 0
D Copy Appointment Body to Task Body Outlook VBA and Custom Forms 0
M copy field value to custom field Outlook VBA and Custom Forms 0
O In Agenda-view - How to copy an existing item months ahead or back? Using Outlook 0
C Move or copy from field to field Outlook VBA and Custom Forms 0
Z Copy specific email body text Outlook VBA and Custom Forms 0
B Need to Copy an email to a subfolder Outlook VBA and Custom Forms 2
S Copy Tasks/Reminders from Shared Mailbox to Personal Tasks/Reminders Outlook VBA and Custom Forms 0
A Cannot copy this folder because it may contain private items Using Outlook 0
C Copy Move item won't work Outlook VBA and Custom Forms 2
Z VBA to convert email to task, insert text of email in task notes, and attach copy of original email Outlook VBA and Custom Forms 4
Commodore Move turns into "copy" Using Outlook 3

Similar threads

Back
Top