Copy Outlook contact field value to another field


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
End If

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

End Sub

Thank you for you assistance.




Outlook version
Outlook 2016 32 bit
Email Account
Office 365 Exchange
Never mind, I found my error. Callback should be CallbackTelephoneNumber . Darn it! Apologies for wasting forum space


Thread starter Similar threads Forum Replies Date
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
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 New Articles 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 New Articles 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
P I have Outlook 2007 on a two year old computer running Vista. How do I copy my Outlook Contacts list and move them over to Outlook 2010 on a brand new Using Outlook 1
F Need to copy an email folder to another computer. How can i do this? Outlook 2010 Using Outlook 2
S I'm not able to copy and paste on outlook. Using Outlook 1
M Outlook 2007 Copy-Paste problems Using Outlook 6
F I cannot highlight text in Microsoft Outlook 2010 e-mails, and copy/paste to the body of another e-m Using Outlook 3
R Upgrading to licensed copy from 2010 beta - Outlook won't work Using Outlook 1
H how do i copy outlook mails from my office system to my laptop Using Outlook 2
B Export from Outlook Express and Windows Live Mail fails to copy to Outlook 2010 Using Outlook 1
D Outlook will not import backup copy of contacts. I have tried file-import-etc. but nothing happens. Using Outlook 3
D How can I export a .pst file without a working copy of Outlook? Using Outlook 3
J How to copy and paste in Outlook 2010 ? Using Outlook 3
B Would like to copy a logo in my signature of my email in outlook Using Outlook 1
R Outlook Mac 2011 copy to self Using Outlook 1
L Outlook 2007. A copy of all incoming emails go to Junk folder. __ Using Outlook 2
S Copy/Paste from Office Word 2003 to Outlook 2003 Using Outlook 3
W Copy Outlook 2010 data files Using Outlook 3
J Sending a copy of a single outlook folder to another person Using Outlook 2
Similar threads