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
Jonas HuberAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Bill PrewIT / Software Engineering ConsultantCommented:
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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
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 PrewIT / Software Engineering ConsultantCommented:
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 PrewIT / Software Engineering ConsultantCommented:
Welcome, glad that was useful.


»bp
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Outlook

From novice to tech pro — start learning today.