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
 

CrazyDD

Member
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

Cheers,

DD
 
Status
Not open for further replies.
Similar threads
Thread starter Title 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 Slipstick.com 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 Slipstick.com 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
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
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
B 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
F Copy and replace not update contact in another pst Using Outlook 0
Commodore Folders always closed in move/copy items dialog box Using Outlook 3
S Custom Form, copy user field data to message body Outlook VBA and Custom Forms 12
oliv- HOW TO COPY /USE FOLDERS ICONS Outlook VBA and Custom Forms 2
B Copy/Move Exchange inbox to Pop inbox Using Outlook 4
R Sending email copy (*.msg file) of sent email if subject line contains specific string. Outlook VBA and Custom Forms 1
O Copy mails from many subfolders to 1 foldr Using Outlook 2
K How to find specific header and copy the mail body Using Outlook 0
G Copy Contact field to Appointment Custom Form Field Outlook VBA and Custom Forms 2
G How to Copy Multi Select Listbox Data to Appointment Outlook VBA and Custom Forms 3
Stilgar Relsik Create a rule to copy text from an email and paste it in the subject line. Using Outlook 1

Similar threads

Top