To bulk-change the "File as" format in existing Outlook contacts, you will need to use a macro since Outlook does not provide a built-in feature for this specific task. Here’s a basic outline of how you can do it:
- Open Outlook and press
ALT + F11to open the Visual Basic for Applications (VBA) editor. - Insert a new module by right-clicking on any of the items in the Project Explorer, selecting
Insert, and thenModule. - Copy and paste the following code into the module:
Sub ChangeFileAsFormat() Dim olNS As Outlook.Namespace Dim ContactsFolder As Outlook.Folder Dim ContactItems As Outlook.Items Dim Itm As Object Set olNS = Application.GetNamespace("MAPI") Set ContactsFolder = olNS.GetDefaultFolder(olFolderContacts) Set ContactItems = ContactsFolder.Items For Each Itm In ContactItems If TypeOf Itm Is Outlook.ContactItem Then Itm.FileAs = Itm.FirstName & " " & Itm.LastName Itm.Save End If Next Itm End Sub - Run the macro by pressing
F5or selectingRunfrom the menu.
This code will change the "File as" format to "First Last" for all existing contacts in your default Contacts folder. Make sure to adjust the code as necessary to fit your specific requirements.
References: