Skip to main content

How to change all comments’ author name in Excel?

When you insert the comments into a worksheet, the name of the comment author is automatically inserted into the comment followed by a colon. Sometimes, you may want to change the name of comment author. How can you do? You can change the name of comment author in Excel as the following methods.

doc change author name1

Change the default author name of all new comments with configuring Excel Options

Quickly change the author name of all existing comments in active or all sheets with Kutools for Excel

Change the author name of all existing comments in the whole workbook with VBA code


Change the default author name of all new comments with configuring Excel Options

You can change the Excel user name in order to change the auther name of all new comments you will insert.

1. Click File > Options in Excel 2010/2013/2016, or you can click the Office button > Excel Options > Popular in Excel 2007.

2. In the Excel Options dialog box, click General in the left bar, then scroll to the Personalize your copy of Microsoft Office section in the right pane, then replace the old User name with the new one you need. And finally click the OK button. See screenshot:

doc change author name1

Form now on, when you inserting new comments into your worksheet, the author name will be the new one as you specified above. However, the author name of the old comments still kept the old one.


Quickly change the author name of all existing comments in Excel

With the Remove/Add User Name in Comment utility of Kutools for Excel, you can quickly change the author name of all existing comments as the below demo shown. Download and try it now! (30-day free trail)


Easily find and replace the author name of all existing comments with new one with Kutools for Excel

Besides the above method, here I recommend you the Remove/Add User Name in Comment utility of Kutools for Excel. With this utility, you can easily change the author name of all existing comments to the new one you need not only in active sheet, but also in the whole workbook.

Before applying Kutools for Excel, please download and install it firstly.

1. Shift to the worksheet you want to change all comments' author name inside, then click Kutools > More > Remove/Add User Name in Comment. See screenshot:

2. In the Remove/Add User Name in Comment dialog box, you need to configure as follow:

Firstly, remove author name from all comments in specified scope.
  • (1) In the Scope drop-down list, if you just want to change author names in current sheet, please select Active sheet option. For changing author names in the whole workbook, please select All Sheets option.
  • (2) Choose the Remove user name from comments option.
  • (3) Click the Apply button.
  • (4) In the popping up dialog box, click the OK button
Then add new author name to all comments in specified scope.
  • (1) Enter the new author name of comments into the User Name box, and then choose the Add user name to comments option;
  • (2) Click the Apply button;
  • (3) In the popping up dialog box, click the OK button;
  • (4) Click the Close button to close the dialog box.

Tip: To use this feature, you should install Kutools for Excel first, please click to download and have a 30-day free trial now.

Using VBA code to convert all negative numbers of a range to positive

If you want to change the author name of all exiting comments in the whole workbook, the below VBA code will help you:

1. Please press Alt + F11 keys at the same time to open the Microsoft Visual Basic for Applications. And in the Microsoft Visual Basic for applications window, click Insert > Module, then copy and paste the following code into the module window:

VBA code: Change the author name of all existing comments in the whole workbook

Sub ChangeCommentName()
'Updateby20140509
Dim xWs As Worksheet
Dim xComment As Comment
Dim oldName As String
Dim newName As String
xTitleId = "KutoolsforExcel"
oldName = InputBox("Old Name", xTitleId, Application.UserName)
newName = InputBox("New Name", xTitleId, "")
For Each xWs In Application.ActiveWorkbook.Worksheets
    For Each xComment In xWs.Comments
        xComment.Text (Replace(xComment.Text, oldName, newName))
    Next
Next
End Sub

2. Press the F5 key to run the code, then a KutoolsforExcel dialog box popping up with the old comment author name displaying in the textbox, please click the OK button. See screenshot:

doc change author name1

3. Then another KutoolsforExcel dialog box pops up, please type the new comment's author name you need into the textbox, and then click the OK button. See screenshot:

doc change author name1

Now all author names of the existing comments are changed to the new name in the whole workbook immediately.

doc change author name1

Note: This method won't work to the new comments you insert.


Demo: Change all comments’ author name with Kutools for Excel


Kutools for Excel: Over 300 handy tools at your fingertips! Start your 30-day free trial with no feature limitations today. Download Now!