Outlook 2003 File As Problem

I have Outlook 2003 and when I synched with a phone, the sync process sorted my outlook contacts by full name.  They were originally sorted by File As.  Well the current view is still set to sort by File As.  The Tools-->options-->Contact Options Default File As order is Company(Last, First), changin that to anything else doesn't matter.  verified that Tools-->Accounts--> View or change existing directories or address books--> Outlook Address Book Show names by File As(Smith, JOhn) is selected.

However, in order to get the contact to show up using the File As attibute, I have to edit each contact and change it from File As to Fullname and back to File As.  I really want to do this for ALL the contacts at once so I don't have to manually edit each one.  How can I accomplish this.
Who is Participating?

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

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.

You can run following VBA macro to set the FileAs property of all the contacts in the Contacts folder programatically:

Sub SetFileAs()
    Dim oContactsFolder As Folder
    Dim oObject As Object
    Dim oContact As ContactItem
    Set oContactsFolder = Session.GetDefaultFolder(olFolderContacts)
    For Each oContact In oContactsFolder.Items
        oContact.FileAs = oContact.LastNameAndFirstName
    Next oContact
End Sub

Let me know if you need any further help.

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

From novice to tech pro — start learning today.