• Status: Solved
  • Priority: Low
  • Security: Public
  • Views: 28
  • Last Modified:

Outlook address book moving data

Hi,

is there a way to move the data from one column to another in a addressbook?
For example from fax to telefon for all items ?

Regards JoNNy
0
Jonas Huber
Asked:
Jonas Huber
  • 3
  • 2
2 Solutions
 
Bill PrewCommented:
I don't know of a way to do that through the "application", but it could easily be done in a VBA (Visual Basic for Applications) macro that you could run.

This example might be enough to get you started, or if it doesn't make any sense then just raise your hand here and we can explain more about how to create the macro, and use it, etc.  (I don't want to go into too much detail yet, in case you have some familiarity in this area).


And here is a reference page that shows the names of the various properties of the contact object, including all the phone numbers.



»bp
0
 
Jonas HuberAuthor Commented:
Ok i know some VBA (mostly from excel but the syntax is similar), and i kinda understand what the code is doing but, as i can see the code is doing this in the local contacts. I need to do that in the public folders.
In my opinion i just have to change this :  objNS.GetDefaultFolder(olFolderContacts) To: objNS.GetDefaultFolder(olPublicFolders).
Am i right ? Maybe i have to add some kind of login credentials to get rights to access the PF.
0
 
Bill PrewCommented:
I think you would access the public folder where the contacts exist as follows, changing / adding your folder hierarchy as appropriate.

objNS.GetDefaultFolder(olPublicFoldersAllPublicFolders).Folders("Folder1").Folders("Folder2")

Open in new window

You will be running this in an Outlook session, so that Outlook profile will need to have access to the public folders and the contact folder.


»bp
0
 
Jonas HuberAuthor Commented:
Ok i just edited some variables to fit my case, but it worked fine for me. Thank you
0
 
Bill PrewCommented:
Welcome, glad that was useful.


»bp
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now