• Outlook User
  • New Outlook app
  • Outlook.com
  • Outlook Mac
  • Outlook & iCloud
  • Developer
  • Microsoft 365 Admin
    • Common Problems
    • Microsoft 365
    • Outlook BCM
    • Utilities & Addins

Rename Exchange Mailbox and Account in Outlook

Slipstick Systems

› Outlook › Rename Exchange Mailbox and Account in Outlook

Last reviewed on December 10, 2020     82 Comments

Applies to: Outlook (classic), Outlook 2010

This page shows you how to change an Exchange mailbox account name (the name in the From field when composing a new message and in File, Account Settings, Email) and the Exchange Mailbox (including Outlook.com accounts) data file name shown in the Navigation pane.
account & folder list names

Vote for the feature suggestion at Outlook UserVoice: Provide a feature to Customize Account Names for email accounts configured in Microsoft Outlook 2016

Using Outlook 2010 and newer with an Exchange server or Outlook.com mailbox, you cannot edit the Folder list name you see in the Navigation pane, but it's easy to change using a macro or script. You can also change it using MFCMAPI or by editing the registry.

The instructions to rename the data file display names and account names for IMAP, POP3, and Personal Folders are Rename email accounts and data files in the folder list.

Change the Account Name in Outlook 2013 and older

Outlook 2016 no longer allows you to change Exchange or Outlook.com account names in File, Account Settings. However, you can either edit the registry or use a macro to change the name. Note that changing the account name doesn't 'stick' in current versions of Outlook 2016. Use the macro method to change it when it reverts back to the email address.

Use these steps to change the Exchange server or Outlook.com account name that is shown on the File, Account Settings, E-mail tab and in the From field when you are composing a message.

From account name

  1. Open File, Account Settings, E-mail tab.
  2. Double click on the account or select it and click Change.
    Account settings dialog
  3. Click More Settings
  4. Type a new name in the Exchange Account field on the General tab
    change the Exchange account display name
  5. Click Ok, then Next, and Finish.

Change the Account Name in Outlook 2016

To change the name by editing the registry, press Windows key + R to open the Run command then type regedit into it and press Enter.

Before making any changes, export the profile from the registry. Right-click on the Profiles key and choose Export or see Backup Profile for a quick command line method.

  1. Browse to the Outlook profile key. In Outlook 2016, it's at
    HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\Outlook\Profiles\
    Outlook 2013: HKEY_CURRENT_USER\Software\Microsoft\Office\15.0\Outlook\Profiles\
  2. Find your profile (most people only have one profile) then find the account's keys: Look at the keys that have subkeys - the account will be in a key named 0000000nn and your email address will be in the account name field on the right (the screenshot was taken after I changed the account name). On my computer, the account is under these subkeys:
    profilename\9375CFF0413111d3B88A00104B2A6676\00000002
    Account name in Registry
  3. Right click on the Account name value and choose Modify.
  4. Type in a new name then close the dialog.
  5. Restart Outlook for the change to take effect.

Macro to change the Account name

You can use a macro to change the name (but for most people, editing the registry will be easier.)
change the account name

To use this macro, you need to install redemption.
Download Redemption Developer version

After installing Redemption, add a new module and paste the macro into the VBA editor. Change the oldName and newName values in the macro, using the account name as shown in File, Account Settings or in the From field of a new message for oldName variable and the desired name as the newName variable.

Public Sub changeAcctName()
Dim session
Dim oldName As String
Dim newName As String

oldName = "diane@domain.com"
newName = "OutlookMVP"

Set session = CreateObject("Redemption.RDOSession")
session.MAPIOBJECT = Application.session.MAPIOBJECT
Set Accounts = session.Accounts
For Each Account In Accounts
  If Account.Name = oldName Then
    Account.Name = newName
    Account.Save
  End If
Next
End Sub

Change Multiple Accounts at Once

This version of the macro uses an array to change multiple account names at once.

Public Sub ChangeAcctNamesAll()
Dim session
Dim oldName As String
Dim newName As String

Dim arrOldName As Variant
Dim arrNewName As Variant

' Set up the array
arrOldName = Array("me@slipstick.com", "me@cdolive.com", "you@slipstick.com")
arrNewName = Array("Diane (Slipstick)", "Diane (CDOLive)", "Information")

' Go through the array and look for a match, then do something
For i = LBound(arrOldName) To UBound(arrOldName)

Set session = CreateObject("Redemption.RDOSession")
session.MAPIOBJECT = Application.session.MAPIOBJECT
Set Accounts = session.Accounts
For Each Account In Accounts
  If Account.name = arrOldName(i) Then
    Account.name = arrNewName(i)
    Account.Save
  End If
Next

Next i
End Sub

Change the Folder List name using a macro or script

This macro (or script) works on all data files, however, its generally easier just to change the names using the user interface, when supported. Unfortunately you don't have that choice with Exchange Server or Outlook.com accounts as there is no UI.
data file display name

Using the macro or script, type the current display name, as seen in the navigation pane, in as the oldName and the desired name as the newName then run the macro or script. You'll need to restart Outlook for the change to take effect.

A Script version is here. This will be easier for most people to use as you just need to double click on the file to make the change (after editing the old and new names in the file.)

To use the script, download the script, edit the folder names then save it and change the extension to vbs. Double click to run it. Close Outlook and reopen it. (You don't need to change the Macro Security Settings in the Trust Center when using the script but will need to change macro security to use the macro.)

If you aren't using the description field (most people don't), the macro can add the original name to the description field. If you make a mistake, you can set the oRoot.Name to oRoot.Description to recover. To check the description field, right click on the root folder and choose Properties or Data File Properties.

Option Explicit
 
Public Sub ChangeFolderContainer()
Dim colStores As Outlook.Stores
Dim oStore As Outlook.Store
Dim oRoot As Outlook.folder
Dim oldName, newName As String

oldName = "Diane Poremsky"
newName = "Diane P"

'On Error Resume Next
    Set colStores = Application.Session.Stores
    For Each oStore In colStores
    Set oRoot = oStore.GetRootFolder
        Debug.Print (oRoot)

If oRoot = oldName Then
oRoot.Description = oRoot.Name
oRoot.Name = newName
End If

Next

Set oRoot = Nothing
Set oStore = Nothing
Set colStores = Nothing
End Sub

Change Multiple Names at Once

This version of the macro uses an array to change multiple datafile names at once time.

Public Sub ChangeRootFolderNames()
Dim colStores As Outlook.Stores
Dim oStore As Outlook.Store
Dim oRoot As Outlook.Folder

Dim arrOldName As Variant
Dim arrNewName As Variant

' Set up the array
arrOldName = Array("me@slipstick.com", "me@cdolive.com", "you@slipstick.com")
arrNewName = Array("Slipstick", "CDOLive", "Not Me")

' Go through the array and look for a match, then do something
For i = LBound(arrOldName) To UBound(arrOldName)

    Set colStores = Application.session.Stores
    For Each oStore In colStores
    Set oRoot = oStore.GetRootFolder
        Debug.Print (oRoot)

If oRoot = arrOldName(i) Then
oRoot.Description = oRoot.name
oRoot.name = arrNewName(i)
End If

Next
'On Error Resume Next

Next i

MsgBox "Please Restart Outlook"

Set oRoot = Nothing
Set oStore = Nothing
Set colStores = Nothing
End Sub

Use MFCMAPI

Before making any changes, export the profile from the registry. See Backup Profile for a quick command line method.

If you don't use to use the script to change the display name, you can use MFCMAPI to edit the PR_DISPLAY_NAME property.

  1. Download MFCMAPI and open it.
  2. Click Session, then Logon. If you have more than one profile, select the desired profile.
  3. Select the Exchange account in the list.
  4. In the lower screen, double click on PR_DISPLAY_NAME to open the Property Editor.
  5. mfcmapi

  6. Type a new name in the Ansi field.
  7. property editor

  8. Click Ok to close the dialog.
  9. Click Session > Logoff.
  10. Close the MFCMAPI window.

 

Edit the Registry

If you know what you are doing, you can edit the registry to change the display name of an Exchange data file in the Folder list. This will not change the name in the From field, only the name in the folder list. (To change the name in the From field, go to File, Account Settings, double click on the account then More Settings. Make the name change on the first tab.)

Before editing the key, export it so you can easily fix it if the display name is messed up. (As it likely will be the first time you try editing it.)

Find your profile in the registry. (Outlook 2016's profile is under \Office\16.0\.)

HKEY_CURRENT_USER\Software\Microsoft\Office\15.0\Outlook\Profiles\profile-name\[big number]
DWORD: 001f3001

Many of the profile keys will contain this DWORD. The Exchange accounts will include the Exchange organization in readable format on the right, as seen in this screenshot.
original registry key value

Rather than deleting the account name and reentering it, I replaced the letters, using spaces it fill in if the email address was longer than the desired display name. You need to use the same number of binary data as the original entry.

Restart Outlook to apply the name change.

Result of correct edit

Note that my successful entry has the exact same number of binary values as the original:
Edit registry value

If the editing was not correct, the data file name displays with Chinese characters:
Edit registry to change account name

 

Backup the Outlook Profile Registry Keys

You can backup the registry using a command line.

  1. Open the Run command (Windows key + R).
  2. Type or paste the correct command line in the Open field and press OK.
  3. The Profile keys will be saved to your Documents folder.
  4. If you need to restore the profile, close Outlook and double click on Outlook-profile.reg.

To export Outlook 2013 profile keys:

REG EXPORT "HKEY_CURRENT_USER\Software\Microsoft\Office\15.0\Outlook\Profiles" %USERPROFILE%\Documents\Outlook-profile.reg /y

To export Outlook 2016 profile keys:

REG EXPORT "HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\Outlook\Profiles" %USERPROFILE%\Documents\Outlook-profile.reg /y

 

Tools

RenameMailbox

Outlook uses your email address as the account name; while you can edit it for POP and IMAP accounts, you cannot easily edit Exchange account names. This tool allows you to rename Exchange mailbox account easily.

Rename Exchange Mailbox and Account in Outlook was last modified: December 10th, 2020 by Diane Poremsky
Post Views: 306

Related Posts:

  • Rename Account in the Navigation Pane
  • Change Account Name in Outlook 2016
  • When you have an Exchange Server account in Small Business Server 2003
    Exchange Account Gets Set as the Default Account
  • How to Remove the Primary Account from Outlook

About Diane Poremsky

A Microsoft Outlook Most Valuable Professional (MVP) since 1999, Diane is the author of several books, including Outlook 2013 Absolute Beginners Book. She also created video training CDs and online training classes for Microsoft Outlook. You can find her helping people online in Outlook Forums as well as in the Microsoft Answers and TechNet forums.

Comments

  1. mikolajek says

    April 23, 2025 at 7:31 am

    My Outlook won't rename multiple accounts.

    I'm getting the error saying "ActiveX component cannot create an object" and the highlighter macro line is "Set session = CreateObject("Redemption.RDOSession")"

    Is there a way to overcome this one?

    Reply
    • Diane Poremsky says

      April 29, 2025 at 8:53 am

      You need to install Redemption then enable it in the VBA Editor's Tools > References.

      Reply
  2. Ivo says

    May 6, 2022 at 7:24 am

    Thanks a lot Diane!! You've been a fantastic Outlook resource for so many years. In my case, for more years than I care to remember, I've found a solution to all my Outlook issues and answered all my sometimes weird Outlook questions on your great site. You have my eternal gratitude and admiration. In this case, for me the registry edit did not work, but the script did. I'm running Outlook® for Microsoft 365 MSO (Version 2204 Build 16.0.15128.20196) 64-bit. Thanks again and please keep up the great work!

    Reply
    • Mark O'Loughlin says

      June 24, 2023 at 7:27 pm

      Editing the Account Name in the Registry no longer works for Microsoft 365, but the Macro method still works. Thanks for the tip!
      Guide:
      1.      Show the developer tab in Outlook: Show the Developer tab - Microsoft Support
      2.      How to run the Macro: Run a macro in Outlook - Microsoft Support
      3.      Create a new macro and paste the script from this article. Remember to change “oldname” and “newname” to what you want, then save it.
      4.      Run the Macro

      Reply
  3. Eric says

    November 30, 2021 at 9:27 am

    I appreciate the plethora of options here. We have MS365 with Exchange Online & I'm in the process of changing our email domain. I've been testing it on my own email address. And, indeed, I do now have the new one as the primary & the old one as an alias. Everything has updated except Outlook & the corresponding Mail control panel, which still think I have the old one (even though recipients receive emails from my new address). Anyway, I just thought I'd mention that the initial registry edit above no longer seems to work. I found it under "00000002" and tried changing it several times, restarting Outlook, rebooting, etc., but it kept on restoring it to my old email address.

    Reply
    • Mark O'Loughlin says

      June 24, 2023 at 7:28 pm

      Editing the Account Name in the Registry no longer works for Microsoft 365, but the Macro method still works. Thanks for the tip!
      Guide:
      1.      Show the developer tab in Outlook: Show the Developer tab - Microsoft Support
      2.      How to run the Macro: Run a macro in Outlook - Microsoft Support
      3.      Create a new macro and paste the script from this article. Remember to change “oldname” and “newname” to what you want, then save it.
      4.      Run the Macro

      Reply
  4. Ron Dullage says

    February 1, 2021 at 3:50 am

    Hi Diane, I had a very minor (really cosmetic) issue with Outlook 2016 that I had been struggling to resolve. Within one Minute if finding your page it was sorted.

    Thank you very much indeed,

    Take care and stay safe.

    Reply
  5. chris says

    December 10, 2020 at 11:43 am

    MFCMAPI way worked like a charm.Many thanks Diane!

    Reply
  6. Victor Ivanidze says

    December 9, 2020 at 5:05 am

    Hello all, there exists a tool named RenameMailbox.

    Reply
  7. Natarajan Raghunath says

    May 3, 2020 at 4:27 pm

    Hi Diane:

    I tried to change the display name in both ways, using MFCMAPI editor and also using the regedit. What happens is after some time it goes back to the original email address. My account is exchange account hosted by Microsoft. I am the only one in that exchange account. Please suggest.

    Reply
  8. Richard says

    October 2, 2019 at 8:49 am

    Hello,

    Many thanks for the information here. I modified your script slightly to look up the samaccount name of the individual logged in and then used that name to check against the mailbox name before modifying it. We used it globally when we changed primary SMTP addresses in our organisation. I'm not a coder so excuse the messy code.

    Hope it helps someone.

    Reply
  9. Matt Williams says

    April 28, 2019 at 10:15 am

    Hi Diane, thank you for this very helpful webpage. I'm using Outlook 2019 and I've tried every method you describe, and all of them have been successful in changing the Display Name for my exchange email accounts. What I'm having a problem with is I lose all search functionality. As I say I've tried every technique and changing the display name means search no longer works. Sometimes search works to start with, but then one account or another stops working. Rebuild the search index doesn't work, and in the search advanced tab it says everything is indexed, but when I search it just comes up with no results. Does changing the display name disconnect the search somehow? Is there any fix you know of? Many thanks

    Reply
    • Diane Poremsky says

      April 28, 2019 at 9:50 pm

      I am not aware that changing the name breaks search, but i will find out.

      Reply
      • Matt Williams says

        May 14, 2019 at 10:13 am

        Hi Diane, thanks for your reply on the search index issue. I've been testing every renaming method for weeks now (both on my laptop and my PC) and having the same issue. All the methods work great for renaming the email accounts (though have to be redone occasionally) but all the methods seem to have the same issue with breaking the search index. Search works for a while after changing the email account name, but then it stops producing any search results. I have to change the email names again and restart the computer to reindex.

        I can't find anything about this and you are the main authority on the subject from what I can tell so you really are my only hope! I've been determined not to let this defeat me, but having to rebuild the search index every few days is proving testing! Does changing the email account names for you not affect your search index? If so, then I'm just wondering why it should do in my case when I'm using the same renaming methods... Any thoughts at all would be immensely appreciated!

        Thanks!

  10. Faisal says

    August 20, 2018 at 6:56 pm

    I used MFCMAPI to change the Mailbox name last year and it worked fine, but starting May/June 2018 it doesn't work. I'm using Office 365 on Windows 10, I have an Exchange account from my company. I used MFCMAPI to edit the account display mailbox name from xxx.xxx@xxx.com to Personal or Business, but once i restart the laptop or close and re-open the Outlook 2016 again, it reverts back. This has been happening since May/June 2018.

    Reply
    • Diane Poremsky says

      September 16, 2018 at 9:51 pm

      Correct, Microsoft made a change and the name changes don't stick. Using the macro should last a little longer, but not much. But... its easy enough to run when needed and you could use it in an autostart macro.

      Reply
  11. Syed Usman says

    July 14, 2018 at 1:12 am

    I could change that, but whenever I sent an email, the name wasn't displaying the way I had saved. It was the same. I checked again if I hadn't save it properly or saved it at all, still the name appears the same.

    Please let me know where I am going wrong.

    Regards,
    Syed Usman

    Reply
    • Diane Poremsky says

      July 16, 2018 at 12:00 am

      What version of Outlook are you using? The ability to change it is broken in current builds of 2016/365 - the changes don't stick long.

      Reply
  12. certaintechshouldbeautomatic says

    September 29, 2017 at 3:04 pm

    Holy crap! I can't believe we have to go to this level to change the name of an account in this day and age. That is so far beyond stupid. It should be possible just by clicking on the name and choosing change. Thank you for these instructions and I was able to finally change it...but geez, it should not take this.

    Reply
    • Andreas says

      March 11, 2018 at 5:44 pm

      Completely agree. This is so retarded and extremely lazy by Microsoft.Then again, looking at Skype for Business and Skype these days, I'm not surprised.

      Reply
  13. Pascal says

    June 20, 2017 at 1:15 am

    Great tutorial (as always on this site). If only MS could make our lives easier and keep their settings Inside each program rather than forcing us to alter register...

    Reply
  14. dafd says

    April 5, 2017 at 6:44 pm

    Thank you!!! :)

    Reply
  15. Victor says

    March 20, 2017 at 7:14 am

    I would like to change the name of folders like "Contacts" in an Exchange account, showing "exch contacts" instead of "contacts - e.mail@exch.xyz"

    Reply
    • Diane Poremsky says

      March 20, 2017 at 8:20 am

      To the best of my knowledge, that is not possible, even using Redemption.

      Reply
  16. Thomas says

    March 11, 2017 at 2:15 pm

    Does not work with Outlook 2016. The reason being that you cannot get to the manual entry screen that the link shows. My Outlook.com used with Outlook 2016 used to show "tjd189@outlook.com" as the sending, reply, or forwarding address and my emails. Now it shows "outlook_6A1C9BDE665559@outlook.com". So when people who received my emails reply or forward it comes back to them as no such address.

    Reply
    • Diane Poremsky says

      March 13, 2017 at 9:56 am

      Correct, as stated near the top: Outlook 2016 no longer allows you to change Exchange account names in File, Account Settings. However, you can either edit the registry or use a macro to change the name. The macro is at the end of this section.

      The reason you see the "outlook_ugly@" address is because you have a non-outlook.com address set as the default for the microsoft account. You need to set it to the outlook.com alias then the account name will change to the outlook.com email address (may take 24 hours) or edit the registry. You can either remove the account and add it back or use the script to change the address in the folder list.

      Reply
  17. Alan says

    February 27, 2017 at 4:36 pm

    I've managed to change the display name of my exchange account in Outlook 2016 (Windows 10 Pro) using MFCMAPI but I'm having no success in changing the actual account name.
    Following the registry changes as described makes absolutely no difference.
    I've also tried downloading the script, changing the names and renaming the file with a .vbs extension but nothing happens when I double-click.
    Any help greatly appreciated as to what I can try next.

    Reply
    • Diane Poremsky says

      March 13, 2017 at 10:50 am

      For most people, changing the account name (as seen in the From field) is easiest by editing the registry -
      HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\Outlook\Profiles\[profilename]\9375CFF0413111d3B88A00104B2A6676\
      The account is under one of the 000000nn values. You will need to restart Outlook for it to take effect.

      Reply
  18. Sean says

    October 11, 2016 at 6:06 pm

    Thank you, Diane. It's nice to have my Navigation Pane tidied up again. Only one problem, I cannot change the Exchange account names as described above in the email properties windows in Outlook 2016. The boxes are grayed out and won't allow editing. So, when I click on "From" in a new email, the full email addresses are showing up. Any ideas how to get around this?

    Reply
    • Diane Poremsky says

      October 12, 2016 at 12:38 am

      Yeah, they currently broke that (for the second time). I'll look into a macro to change it, otherwise you'd need to edit it in the registry.

      Reply
    • Diane Poremsky says

      October 13, 2016 at 1:02 am

      I updated the page to include instructions to either edit the registry (easy - the name is a string, so its simple to edit) or using a macro. The macro requires Redemption.

      Reply
      • Sean says

        October 13, 2016 at 8:24 pm

        Thanks, Diane, but my issue is changing the names in the "From" field. When I go to File, Account Settings, double click on the account then More Settings, the account names are grayed out and, therefore, I cannot change the account names.

      • Diane Poremsky says

        October 13, 2016 at 11:41 pm

        You can't change them from the More Settings dialog - you need to use the macro with Redemption. Or edit the Registry.

  19. Lloyd says

    October 9, 2016 at 8:47 am

    Hi Diane, I get the following message on multiple computers:
    Script: C:\Users\xx\Desktop\Rename Exchange folder.vbs
    Line: 4
    Char: 15
    Error: Expected end of statement
    Code: 800A0401
    Source: Microsoft VBScript compilation error

    Any idea what's going wrong? Your script did work once for me, then it oddly stopped. Thanks!

    Reply
    • Diane Poremsky says

      October 12, 2016 at 7:20 am

      Do you know which line is 4? I can't repro the error and I'm not sure if 4 is 'Set colStores =' line or a different one. If you changed the names, make sure the double quotes are all there.

      Reply
      • Lloyd says

        October 12, 2016 at 10:16 pm

        Yes according to Notepad it's Dim colStores As Outlook.Stores and the 15th character is the A
        I've tried copying the code straight from your website again and get the same error.
        What happens if you run the script with the wrong name/e-mail address in there?
        Cheers

      • Diane Poremsky says

        October 12, 2016 at 11:36 pm

        if the folder name is wrong it should do nothing. (I did that last night, hoping to get the same error you did.)

        Are you using the vbs script or the macro? It should look like Dim colStores 'As Outlook.Stores, with an ' in front of As in the vbs script.

      • Lloyd says

        October 14, 2016 at 4:58 am

        Oh, Diane, thank you!
        It turns out I confused the script and the macro. I didn't know that they actually are slightly different languages. The first time I just downloaded the script, and it worked. Afterwards, I read this page and decided I liked the feature which puts the old name in the description, so I simply copied and pasted the code off the page into the .vbs and saved.
        Now it works correctly and my team are extremely pleased! Thank you again, especially for replying promptly.
        Cheers
        (P.S. The e-mail replies feature of this forum isn't functioning)

      • Diane Poremsky says

        October 14, 2016 at 8:15 am

        Thanks for letting me know the emails aren't working.

  20. glyn says

    March 20, 2016 at 4:54 am

    Many thanks for the link to MFCMAPI I used the 64 bit version and managed to resolve my naming issue many many thanks ! much appreciated

    Reply
  21. David Ghikas says

    January 22, 2016 at 4:24 pm

    Thank you so much Diane! Your MFCMAPI solution worked like a charm!

    Reply
  22. Curious Bob says

    July 14, 2015 at 9:52 pm

    Hi Diane,

    This info is useful for Favorite Folders. In Outlook 2007, the mailbox name is appended to the name of the Fav Folder (like: FAV_FOLDER - in MAILBOX). Shortening the mailbox name helps fit the fav folder name within the width of the nav pane.

    Do you know of a way to hide the account name altogether, in the Fav Folder name? So only the fav folder name itself displays, and not the 'in ACC_NAME' part? Perhaps through editing the registry? Here is an image displaying the part I'm interested in hiding: https://s7.postimg.org/4b4twdhd7/favfoldersaccountname2.png

    I'd be interested to hear your thoughts, and grateful for any advice or pointers you might be able to give.

    Thanks!

    Reply
    • Diane Poremsky says

      July 16, 2015 at 2:41 am

      If there are two folders using the same name, the account name is added - so, if you rename the folders so they are all unique, the account name won't show.

      Reply
    • Curious Bob says

      July 16, 2015 at 3:42 am

      Thanks for your reply Diane - my screenshot didn't show it, but the folders had different names. To confirm this, I put in random names for each fav folder: https://i.imgur.com/Z6pxt9a.png

      The "in [ACCOUNT NAME]" part still shows, however. Perhaps this is a limitation of Outlook 2007? If there's a way to remove it, I'd be grateful to know - and then I can go off and research on my own. Thanks for your time, as always!

      Reply
      • Diane Poremsky says

        July 16, 2015 at 9:54 pm

        Interesting. I don't recall that behavior in Outlook 2007 - but it's possible I forgot - I haven't used 2007 onm a regular basis in some time.

  23. Relieved Bob says

    May 19, 2015 at 1:30 am

    Yes, a restart did the trick. Thanks very much again, Diane.

    Reply
  24. Grateful Bob says

    May 14, 2015 at 8:52 am

    Thank you so much, Diane! The second solution looks easier, so I will try that.

    BTW, changing the name of the primary mailbox made the tasks/to-dos in the pane on the side of my screen disappear, so I had to revert the primary mailbox to its original name to get the tasks/to-dos to appear again. Not an issue for me, as I'm only trying to shorten the mailbox name shown after some search folders for a secondary mailbox (Outlook 2007) - but something perhaps worthwhile for others to consider.

    Thanks again for your help, and for your site! I've used it quite a bit over the past few years. A lot of gems here.

    Greetings from Sydney :)

    Reply
    • Diane Poremsky says

      May 14, 2015 at 9:21 am

      on the to-do's - were they missing after a restart? I can understand why they'd disappear, but restarting outlook should bring them back.

      Reply
      • zillah says

        April 23, 2016 at 9:14 am

        Hi Diane
        I am using outlook 2013 connecting to my work Exchange server.
        How can I change the ost file name ? because Exchange account name (left navigation pane) has the same as my ost file name.
        Under More Settings --> General --> Exchange account has different name from name in the left navigation pane.
        I am assuming if I change the ost file that would change exchange account name

      • Diane Poremsky says

        April 23, 2016 at 10:20 am

        The script on this page should work - I used it to rename a data file associated with the new outlook.com custom domain feature (because the custom domains are poorly implemented - hoping that changes before it's out of trial).

  25. Bob says

    May 14, 2015 at 7:24 am

    Hi Diane,

    Your script works amazingly well! This is exactly what I was after.

    When testing, I accidentally forgot to take our the If oldName parameter, and all m accounts now have the same name!

    Now I have no way to distinguish between accounts to rename them manually.

    Is it possible to somehow have a 'For each' statement that will assign a number to each account?

    I can then recycle the script to identify each code by its individual number and rename it manually.

    Any help would be much appreciated :)

    Thanks!

    Reply
    • Diane Poremsky says

      May 14, 2015 at 8:33 am

      you can do something like this:
      add Dim i with the other dim's.
      before the 'for each ostore' line, add i =1
      after 'for each ostore' line, add
      i=i+1
      use oRoot.Name = i
      to number them. I tested it on my profile (after exporting the profile registry key!) and i got weird numbers, but they were all different numbers.

      Reply
    • Diane Poremsky says

      May 14, 2015 at 8:39 am

      BTW, another option is to figure out which account each folder is, right click on the root and choose properties then enter the name you want to use in the description. use oroot.name = oroot.description in the macro.

      BTW2 - i had to restart outlook to see the changes.

      Reply
  26. Richard says

    April 16, 2015 at 6:55 pm

    Okay, now the macros has stopped working altogether on the shared mailbox. So I tried to use MFCMAPI but got the following error:
    MAPIInitialize failed with error 0x80004005 == MAPI_E_CALL_FAILED.

    Here are some known causes for this.
    1 - No version of Extended MAPI is installed. Either Outlook or MAPICDO must be installed.
    See https://www.microsoft.com/downloads/details.aspx?familyid=E17E7F31-079A-43A9-BFF2-0A110307611E to install MAPICDO.
    2 - The 64 bit version of Outlook 2010 is installed. The 64 bit version of Outlook 2010 requires the 64 bit build of MFCMAPI.
    See https://mfcmapi.codeplex.com for the latest 64 bit build of MFCMAPI.
    3 - Windows Mail or Outlook Express (which do not implement Extended MAPI) is registered as the Default Mail Client.
    See https://msdn.microsoft.com/en-gb/library/dd162409.aspx for information on setting the Default Mail Client.
    In file MapiObjects.cpp
    On line 120

    Outlook is the default mail app and it's Outlook 2013?

    Reply
    • Diane Poremsky says

      April 29, 2015 at 12:50 am

      I'm pretty sure you need the shared mailbox in the profile as it's own account.

      I have no idea why mfcmapi is erroring - try getting the previous build.

      Reply
  27. Richard says

    April 15, 2015 at 7:24 pm

    The macro works on the shared mailbox if I open Outlook, run it, close and re-open. It just doesn't work on following re-boots.

    Reply
    • Diane Poremsky says

      April 15, 2015 at 8:00 pm

      The only thing i can thing is think is that the mailbox is completely accessible right after a reboot and when you close outlook, some bits are left behind, waiting for a restart.

      Reply
  28. Richard says

    April 15, 2015 at 12:04 am

    I should also add what is probably the critical info... the problem combo is a mailbox that opens with the primary exchange account. It's not a second full exchange account.

    Reply
    • Diane Poremsky says

      April 15, 2015 at 12:16 am

      As far as I know, you can't rename shared mailboxes - the mailbox name is set by exchange - but I'll check the registry and see if it's in the registry and if it's possible to edit the name.

      Reply
  29. Richard says

    April 15, 2015 at 12:01 am

    I also tried reversing the order of the two modules and it is the same one that fails.
    The problem combination is OLD: "NTEU UTS Branch" NEW: "uts@nteu"

    Reply
  30. Richard says

    April 14, 2015 at 11:50 pm

    I first tried cutting and pasting the whole script below in the same module, then changing the old/new combo.

    Then I tried adding and extra old and new combo within a single instance of the script in one module.

    Reply
  31. Richard says

    April 14, 2015 at 7:37 pm

    I have two exchange folders so made two macros following your instructions. If I run both macros, close and re-open Outlook, they both work. But then the next time I restart Outlook, only the first one runs. I've tried combining them into a single macro but couldn't get it to work. Any ideas on how to get both working? Thanks

    Reply
    • Diane Poremsky says

      April 14, 2015 at 9:10 pm

      post the code here and I'll take a look. The usual cause of macros not working is the macro security setting, but that would affect both.

      Reply
  32. Jean-Claude says

    February 21, 2015 at 4:46 am

    Thanks, this script is exactly what I need. But... you rename from old to new name. Is it possible to do it by identifying the storage to rename with its mail address ? I can do it for primary exchange account (by comparying filepath of account and storage) but not for additional exchange account (which is not consider as an account). JC

    Reply
    • Diane Poremsky says

      February 21, 2015 at 11:39 am

      the additional account is a shared mailbox? I'm not sure - I'll look into it.

      Reply
    • Jean-Claude says

      February 21, 2015 at 2:56 pm

      Sorry, wrong word, in my case it seems to be "delegate mailbox store" (olExchangeMailbox value 1). I can list them thru the storages, but i'd like to identify them by getting their associated email addresses.

      Reply
      • Diane Poremsky says

        February 21, 2015 at 5:37 pm

        i think it will be called the same way as a shared mailbox - will look into it.

  33. Xavier L. says

    February 19, 2015 at 7:58 am

    Hi, thanks for this macro it's very useful but is there any way to change the Account name with VBS too? I will have to change the account name on about 1000 outlook 2010/13. Thanks for your help.

    Reply
    • Diane Poremsky says

      February 21, 2015 at 11:39 am

      Possibly, I'll look into it.

      Reply
  34. Jan Hanzel says

    January 15, 2015 at 8:55 am

    Thanks, the script works and it has done I wanted.

    Reply
  35. Nicole Dalton says

    October 14, 2014 at 2:28 pm

    Hello. Could you post the link to the macro script? The link "Script version is here." does not take you to the macro to download it. It just brings up a picture of your example shown below the link. Thanks.

    Reply
    • Diane Poremsky says

      October 15, 2014 at 11:13 pm

      Hmm. I thought I posted the link last night. :( A text file containing the script is here: https://www.slipstick.com/files/change-displayname.vbs.txt

      Reply
  36. Mark says

    September 22, 2014 at 2:59 pm

    Similarly, only Exchange Admin should run the "Change the Display Name" script for changes to make effect?

    Reply
    • Diane Poremsky says

      September 22, 2014 at 3:39 pm

      No, anyone can run that, it just changes the how the accounts are shown in the Navigation pane on the user's computer. Outlook uses the email address for the data file names and you can use that to change then to names. Neither change on this page affects anything except how the account is named on the user's computers.

      In this screenshot of the navigation pane and the compose message form with the From menu expanded, three of the accounts use the format Outlook uses - which is the email address. I changed one account to use my name in the navigation pane and to use the domain in the accounts list. These names are also used in the Account Settings dialog, on the Data Files tab and Email tab.
      account names

      Only the administrator can change the display name in messages (or in the GAL) when you use Exchange. The instructions on this page will not affect this:
      Display name in email

      Reply
  37. Mark says

    September 22, 2014 at 2:35 pm

    Also, I was trying to change the name in From field in Outlook 2007 following your procedure, but still when I am sending email, it shows my name in From field

    Reply
    • Diane Poremsky says

      September 22, 2014 at 2:47 pm

      What type of email account? THe instructions here are for Exchange server accounts, as it seen in the From picker when you have multiple accounts in Outlook, not the name the recipients see. Only the Exchange admin can change that.

      If you have a different account type, you can change it in Account Settings:
      Change the From display name

      Reply
  38. Mark says

    September 22, 2014 at 2:12 pm

    Is there any way how I can change From field when sending e-mail through MS Outlook 2010 using VBA?

    Reply
    • Diane Poremsky says

      September 22, 2014 at 3:11 pm

      You can send from a different account or a shared mailbox when you use VBA.
      https://www.slipstick.com/developer/code-samples/send-email-address-vba/

      Reply
      • Ian says

        September 18, 2016 at 11:22 pm

        I'm not sure if any of the solutions in this article address the (minor) problem that I have, which is best illustrated with a couple of images (Outlook.com account, Microsoft Exchange server, in Outlook 2010 desktop on Windows 10). I may have to put them on my OneDrive in order to attach here.

      • Diane Poremsky says

        September 18, 2016 at 11:45 pm

        The vbscript - https://www.slipstick.com/files/change-displayname.vbs.txt will fix the name in the folder list.
        oldName = "youremail@address"
        newName = "Name you prefer"

  39. Diane Poremsky says

    September 16, 2018 at 9:54 pm

    Thanks. (I thought I had added the link to the page but either I didn't or I'm blind.)

    The macro will change it and Outlook keeps the name change better, at least it did here and it is easy enough to rerun the macro to fix it when outlook updates it.

    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Visit Slipstick Forums.
What's New at Slipstick.com

Latest EMO: Vol. 31 Issue 7

Subscribe to Exchange Messaging Outlook






Support Services

Do you need help setting up Outlook, moving your email to a new computer, migrating or configuring Office 365, or just need some one-on-one assistance?

Our Sponsors

CompanionLink
ReliefJet
  • Popular
  • Latest
  • Week Month All
  • Use Classic Outlook, not New Outlook
  • How to Remove the Primary Account from Outlook
  • Reset the New Outlook Profile
  • Disable "Always ask before opening" Dialog
  • How to Hide or Delete Outlook's Default Folders
  • This operation has been cancelled due to restrictions
  • Change Outlook's Programmatic Access Options
  • Use Public Folders In new Outlook
  • Removing Suggested Accounts in New Outlook
  • How to Delete Stuck Read Receipts
  • Sync Issues and Errors with Gmail and Yahoo accounts
  • Error Opening iCloud Appointments in Classic Outlook
  • Opt out of Microsoft 365 Companion Apps
  • Mail Templates in Outlook for Windows (and Web)
  • Urban legend: Microsoft Deletes Old Outlook.com Messages
  • Buttons in the New Message Notifications
  • Move Deleted Items to Another Folder Automatically
  • Open Outlook Templates using PowerShell
  • Count and List Folders in Classic Outlook
  • Google Workspace and Outlook with POP Mail
Ajax spinner

Recent Bugs List

Microsoft keeps a running list of issues affecting recently released updates at Fixes or workarounds for recent issues in classic Outlook (Windows).

For new Outlook for Windows: Fixes or workarounds for recent issues in new Outlook for Windows .

Outlook for Mac Recent issues: Fixes or workarounds for recent issues in Outlook for Mac

Outlook.com Recent issues: Fixes or workarounds for recent issues on Outlook.com

Office Update History

Update history for supported Office versions is at Update history for Office

Outlook Suggestions and Feedback

Outlook Feedback covers Outlook as an email client, including Outlook Android, iOS, Mac, and Windows clients, as well as the browser extension (PWA) and Outlook on the web.

Outlook (new) Feedback. Use this for feedback and suggestions for Outlook (new).

Use Outlook.com Feedback for suggestions or feedback about Outlook.com accounts.

Other Microsoft 365 applications and services




New Outlook Articles

Sync Issues and Errors with Gmail and Yahoo accounts

Error Opening iCloud Appointments in Classic Outlook

Opt out of Microsoft 365 Companion Apps

Mail Templates in Outlook for Windows (and Web)

Urban legend: Microsoft Deletes Old Outlook.com Messages

Buttons in the New Message Notifications

Move Deleted Items to Another Folder Automatically

Open Outlook Templates using PowerShell

Count and List Folders in Classic Outlook

Google Workspace and Outlook with POP Mail

Newest Code Samples

Open Outlook Templates using PowerShell

Count and List Folders in Classic Outlook

Insert Word Document into Email using VBA

Warn Before Deleting a Contact

Use PowerShell to Delete Attachments

Remove RE:, FWD:, and Other Prefixes from Subject Line

Change the Mailing Address Using PowerShell

Categorize @Mentioned Messages

Send an Email When You Open Outlook

Delete Old Calendar Events using VBA

VBA Basics

How to use the VBA Editor

Work with open item or selected item

Working with All Items in a Folder or Selected Items

VBA and non-default Outlook Folders

Backup and save your Outlook VBA macros

Get text using Left, Right, Mid, Len, InStr

Using Arrays in Outlook macros

Use RegEx to extract message text

Paste clipboard contents

Windows Folder Picker

Custom Forms

Designing Microsoft Outlook Forms

Set a custom form as default

Developer Resources

Developer Resources

Developer Tools

VBOffice.net samples

SlovakTech.com

Outlook MVP David Lee

Repair PST

Convert an OST to PST

Repair damaged PST file

Repair large PST File

Remove password from PST

Merge Two Data Files

Sync & Share Outlook Data

  • Share Calendar & Contacts
  • Synchronize two computers
  • Sync Calendar and Contacts Using Outlook.com
  • Sync Outlook & Android Devices
  • Sync Google Calendar with Outlook
  • Access Folders in Other Users Mailboxes

Diane Poremsky [Outlook MVP]

Make a donation

Mail Tools

Sending and Retrieval Tools

Mass Mail Tools

Compose Tools

Duplicate Remover Tools

Mail Tools for Outlook

Online Services

Calendar Tools

Schedule Management

Calendar Printing Tools

Calendar Reminder Tools

Calendar Dates & Data

Time and Billing Tools

Meeting Productivity Tools

Duplicate Remover Tools

Productivity

Productivity Tools

Automatic Message Processing Tools

Special Function Automatic Processing Tools

Housekeeping and Message Management

Task Tools

Project and Business Management Tools

Choosing the Folder to Save a Sent Message In

Run Rules on messages after reading

Help & Suggestions

Submit Outlook Feature Requests

Slipstick Support Services

Buy Microsoft 365 Office Software and Services

Visit Slipstick Forums.

What's New at Slipstick.com

Home | Outlook User | Exchange Administrator | Office 365 | Outlook.com | Outlook Developer
Outlook for Mac | Common Problems | Utilities & Addins | Tutorials
Outlook & iCloud Issues | Outlook Apps
EMO Archives | About Slipstick | Slipstick Forums
Submit New or Updated Outlook and Exchange Server Utilities

Send comments using our Feedback page
Copyright © 2026 Slipstick Systems. All rights reserved.
Slipstick Systems is not affiliated with Microsoft Corporation.