–Please enter your response above this line–

Tue 1/18/2011/ 2:30pm/ TJones (time)-
Worked with user to determine that both the 'file as' and outlook defaults are correct but that they are displayed incorrectly. They magically revert if the user clicks into the contact, into the 'full name' field and then clicks OK to save and then saves and closes.

Ultimately this seems like an issue with the 'full name' not being parsed correctly by Outlook 2007.

Tue 1/18/2011/ 5:30pm/ TJones (time)-
Did the following to fix the existing contacts automatically:

1.In Outlook 2007, click Alt+F11 to start the Visual Basic Editor.

2. Enable macros if prompted.

3.In the Project Explorer, expand the Project1 node.

4.Expand the Microsoft Office Outlook Objects node.

5.Double-click ThisOutlookSession.

6.On the Tools menu, click References.

7.In the References dialog box, ensure that Microsoft Outlook 12.0 Object Library and Visual Basic for Applications are selected.

8.Click OK to close the References dialog box.

9.Copied the following into the script window:

Private Sub ReFileContacts()
Dim items As items, folder As folder
Dim contactItems As Outlook.items
Dim itemContact As Outlook.ContactItem

Set folder = Session.GetDefaultFolder(olFolderContacts)
Set items = folder.items
Count = items.Count
If Count = 0 Then
MsgBox “Nothing to do!”
Exit Sub
End If

' Filter on the message class to obtain only contact items in the folder.
Set contactItems = items.Restrict(“[messageclass]='IPM.Contact'”)

For Each itemContact In contactItems
itemContact.FileAs = itemContact.FirstName + ” ” + itemContact.LastName
itemContact.Save
Next

MsgBox “Your contacts have been refiled.”
End Sub

10.hit the F5 key to run the macro.

*** **** **** ***
Tested. OK. Resolved.

Tue 1/18/2011/ 6:40pm/ TJones-
Details: In Outlook the contacts should be displayed first_name and then Last_name but some contacts seem to begin to display Last_Name, First_name even though they are listed correctly in the “file as” section of the contact and all the defaults and settings are correct in Outlook.

If you are business with between 5 and 50 computers and would like more information about Watchman’s services or a free consultation click here for more info.

Full-Time Computer Support at Part-Time Prices

#END

Permalink

| Leave a comment